KeysConverter.GetStandardValues(ITypeDescriptorContext) 方法

定义

返回此类型转换器在提供格式上下文时设计的数据类型的标准值的集合。

public:
 override System::ComponentModel::TypeConverter::StandardValuesCollection ^ GetStandardValues(System::ComponentModel::ITypeDescriptorContext ^ context);
public override System.ComponentModel.TypeConverter.StandardValuesCollection GetStandardValues(System.ComponentModel.ITypeDescriptorContext context);
public override System.ComponentModel.TypeConverter.StandardValuesCollection GetStandardValues(System.ComponentModel.ITypeDescriptorContext? context);
override this.GetStandardValues : System.ComponentModel.ITypeDescriptorContext -> System.ComponentModel.TypeConverter.StandardValuesCollection
Public Overrides Function GetStandardValues (context As ITypeDescriptorContext) As TypeConverter.StandardValuesCollection

参数

context
ITypeDescriptorContext

ITypeDescriptorContext提供格式上下文,可用于提取有关要从中调用此转换器的环境的其他信息。 此参数或此参数的属性可以是 null

返回

TypeConverter.StandardValuesCollection包含一组标准有效值,如果数据类型不支持标准值集,则为空。

注解

返回的集合包含可转换的键的值。

适用于

另请参阅