TypeConverter.GetStandardValuesSupported 方法

定义

返回此对象是否支持可以从列表中选取的标准值集。

重载

GetStandardValuesSupported()

返回此对象是否支持可以从列表中选取的标准值集。

GetStandardValuesSupported(ITypeDescriptorContext)

使用指定的上下文返回此对象是否支持可以从列表中选取的标准值集。

GetStandardValuesSupported()

返回此对象是否支持可以从列表中选取的标准值集。

public:
 bool GetStandardValuesSupported();
public bool GetStandardValuesSupported ();
member this.GetStandardValuesSupported : unit -> bool
Public Function GetStandardValuesSupported () As Boolean

返回

如果应调用 true 来查找对象支持的一组公共值,则为 GetStandardValues();否则为 false

适用于

GetStandardValuesSupported(ITypeDescriptorContext)

使用指定的上下文返回此对象是否支持可以从列表中选取的标准值集。

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

继承者说明

如果要转换的类型支持标准值,请重写此方法。

另请参阅

适用于