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