TypeConverter.GetStandardValuesSupported 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回此对象是否支持可从列表中选择的标准值集。
重载
| 名称 | 说明 |
|---|---|
| GetStandardValuesSupported() |
返回此对象是否支持可从列表中选择的标准值集。 |
| GetStandardValuesSupported(ITypeDescriptorContext) |
返回此对象是否支持使用指定上下文从列表中选取的标准值集。 |
GetStandardValuesSupported()
- Source:
- TypeConverter.cs
- Source:
- TypeConverter.cs
- Source:
- TypeConverter.cs
- Source:
- TypeConverter.cs
- Source:
- TypeConverter.cs
返回此对象是否支持可从列表中选择的标准值集。
public:
bool GetStandardValuesSupported();
public bool GetStandardValuesSupported();
member this.GetStandardValuesSupported : unit -> bool
Public Function GetStandardValuesSupported () As Boolean
返回
true 如果 GetStandardValues() 应调用以查找对象支持的通用值集,则为 ;否则为 false。
适用于
GetStandardValuesSupported(ITypeDescriptorContext)
- Source:
- TypeConverter.cs
- Source:
- TypeConverter.cs
- Source:
- TypeConverter.cs
- Source:
- TypeConverter.cs
- Source:
- TypeConverter.cs
返回此对象是否支持使用指定上下文从列表中选取的标准值集。
public:
virtual bool GetStandardValuesSupported(System::ComponentModel::ITypeDescriptorContext ^ context);
public virtual bool GetStandardValuesSupported(System.ComponentModel.ITypeDescriptorContext? context);
public virtual bool GetStandardValuesSupported(System.ComponentModel.ITypeDescriptorContext context);
abstract member GetStandardValuesSupported : System.ComponentModel.ITypeDescriptorContext -> bool
override this.GetStandardValuesSupported : System.ComponentModel.ITypeDescriptorContext -> bool
Public Overridable Function GetStandardValuesSupported (context As ITypeDescriptorContext) As Boolean
参数
- context
- ITypeDescriptorContext
提供格式上下文的一 ITypeDescriptorContext 个。
返回
true 如果 GetStandardValues() 应调用以查找对象支持的通用值集,则为 ;否则为 false。
注解
如此类中实现的,此方法始终返回 false。
使用 context 参数提取有关从中调用此转换器的环境的其他信息。 此参数可以是 null,因此请始终检查它。 此外,上下文对象的属性也可以返回 null。
继承者说明
如果要转换的类型支持标准值,请重写此方法。