TypeConverter.GetStandardValuesSupported Method

Definition

返回此对象是否支持可以从列表中选取的值的标准集。Returns whether this object supports a standard set of values that can be picked from a list.

Overloads

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

Returns

Boolean

如果应调用 true 来查找对象支持的一组公共值,则为 GetStandardValues();否则为 falsetrue 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

Parameters

context
ITypeDescriptorContext

一个 ITypeDescriptorContext,用于提供格式上下文。An ITypeDescriptorContext that provides a format context.

Returns

Boolean

如果应调用 true 来查找对象支持的一组公共值,则为 GetStandardValues();否则为 falsetrue if GetStandardValues() should be called to find a common set of values the object supports; otherwise, false.

Remarks

当在此类中实现时,此方法始终返回 falseAs 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. 同样,上下文对象的属性可以返回 nullAlso, properties on the context object can return null.

Notes to Inheritors

如果要转换的类型支持标准值,请重写此方法。Override this method if the type you want to convert supports standard values.

See also

Applies to