TypeConverter.GetStandardValuesSupported 方法
定义
返回此对象是否支持可以从列表中选取的标准值集。Returns whether this object supports a standard set of values that can be picked from a list.
重载
GetStandardValuesSupported() |
返回此对象是否支持可以从列表中选取的标准值集。Returns whether this object supports a standard set of values that can be picked from a list. |
GetStandardValuesSupported(ITypeDescriptorContext) |
使用指定的上下文返回此对象是否支持可以从列表中选取的标准值集。Returns whether this object supports a standard set of values that can be picked from a list, using the specified context. |
GetStandardValuesSupported()
返回此对象是否支持可以从列表中选取的标准值集。Returns whether this object supports a standard set of values that can be picked from a list.
public:
bool GetStandardValuesSupported();
public bool GetStandardValuesSupported ();
member this.GetStandardValuesSupported : unit -> bool
Public Function GetStandardValuesSupported () As Boolean
返回
如果应调用 true
来查找对象支持的一组公共值,则为 GetStandardValues();否则为 false
。true
if GetStandardValues() should be called to find a common set of values the object supports; otherwise, false
.
适用于
GetStandardValuesSupported(ITypeDescriptorContext)
使用指定的上下文返回此对象是否支持可以从列表中选取的标准值集。Returns whether this object supports a standard set of values that can be picked from a list, using the specified 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,用于提供格式上下文。An ITypeDescriptorContext that provides a format context.
返回
如果应调用 true
来查找对象支持的一组公共值,则为 GetStandardValues();否则为 false
。true
if GetStandardValues() should be called to find a common set of values the object supports; otherwise, false
.
注解
当在此类中实现时,此方法始终返回 false
。As implemented in this class, this method always returns false
.
使用 context
参数提取有关调用此转换器的环境的附加信息。Use the context
parameter to extract additional information about the environment from which this converter is invoked. 此参数可以是 null
,因此请始终选中此参数。This parameter can be null
, so always check it. 同样,上下文对象的属性可以返回 null
。Also, properties on the context object can return null
.
继承者说明
如果要转换的类型支持标准值,请重写此方法。Override this method if the type you want to convert supports standard values.