DataFieldConverter.GetStandardValues(ITypeDescriptorContext) 方法

定义

如果可以得到关于选定数据源内的字段的信息,则使用提供的上下文获取这些字段的列表。Gets a list of fields in the selected data source if information about them is available, using the provided context. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

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 object that represents the data-bound component or the control that the property belongs to.

返回

TypeConverter.StandardValuesCollection

包含数据源中可用字段名称列表的 TypeConverter.StandardValuesCollection 对象。A TypeConverter.StandardValuesCollection object containing a list of the names of fields available in the data source.

注解

备注

通常不会直接访问类型转换器。You typically do not access a type converter directly. 的此实现用于 TypeConverter 设计时的数据绑定控件,并使用属性对其进行实例化 TypeConverterAttributeThis implementation of TypeConverter is intended for use by a data-bound control at design time, and is instantiated with a TypeConverterAttribute on a property.

适用于

另请参阅