DataSourceViewSchemaConverter.GetStandardValuesSupported 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指示在指定的上下文内,此转换器是否返回一组可以分配给控件属性的值。
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 实现。
返回
如果此转换器返回一组可以分配给关联控件属性的值,则返回 true
;否则返回 false
。
注解
GetStandardValuesSupported方法指示转换器是否支持通过方法返回可用值的列表 GetStandardValues 。
GetStandardValuesSupported DataSourceViewSchemaConverter true
如果指定的 context
对象 IDataSourceViewSchemaAccessor 在其属性中提供了实现 Instance ,则对象的方法将返回。 GetStandardValues方法使用 IDataSourceViewSchemaAccessor 实现来检索关联数据源架构中的可用字段列表。