DataSourceConverter.GetStandardValuesSupported(ITypeDescriptorContext) 方法

定义

获取一个值,该值指示转换器是否支持可从列表中选取的一组标准值。Gets a value indicating whether the converter supports a standard set of values that can be picked from a list.

public:
 override bool GetStandardValuesSupported(System::ComponentModel::ITypeDescriptorContext ^ context);
public override bool GetStandardValuesSupported (System.ComponentModel.ITypeDescriptorContext context);
override this.GetStandardValuesSupported : System.ComponentModel.ITypeDescriptorContext -> bool
Public Overrides Function GetStandardValuesSupported (context As ITypeDescriptorContext) As Boolean

参数

context
ITypeDescriptorContext

可用于获取附加上下文信息的 ITypeDescriptorContextAn ITypeDescriptorContext that can be used to gain additional context information.

返回

Boolean

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

适用于