TargetConverter.GetStandardValues(ITypeDescriptorContext) 方法

定义

从默认的上下文返回此类型转换器设计用于的数据类型的标准值集合。Returns a collection of standard values from the default context for the data type this type converter is designed for.

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,用于提供格式上下文。An ITypeDescriptorContext that provides a format context.

返回

TypeConverter.StandardValuesCollection

含有一组标准的有效值的 TypeConverter.StandardValuesCollection,或者如果数据类型不支持一组标准值,则为 nullA TypeConverter.StandardValuesCollection containing a standard set of valid values, or null if the data type does not support a standard set of values.

注解

这是一个仅供内部使用的类。This is an internal-only class.

适用于