DataFieldConverter.GetStandardValuesSupported(ITypeDescriptorContext) 方法
定义
获取一个值,该值指示此对象是否返回可从列表中选取的标准值集。Gets a value indicating whether this object returns a standard set of values that can be picked from a list. 此 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 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
一个 ITypeDescriptorContext 对象,该对象表示属性所属的数据绑定组件或控件。An ITypeDescriptorContext object that represents the data-bound component or the control that the property belongs to.
返回
如果上下文为非空并且可强制转换为 IComponent,则为 true;否则为 false。true if the context is not null and can be cast to an IComponent; otherwise false.
注解
备注
通常不会直接访问类型转换器。You typically do not access a type converter directly. 的此实现用于 TypeConverter 设计时的数据绑定控件,并使用属性对其进行实例化 TypeConverterAttribute 。This implementation of TypeConverter is intended for use by a data-bound control at design time, and is instantiated with a TypeConverterAttribute on a property.