DataSourceIDConverter.GetStandardValues(ITypeDescriptorContext) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回可用数据源名称的列表。
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 对象,该对象提供有关类型转换器上下文的信息,以便类型转换器可以执行转换。
返回
一个 TypeConverter.StandardValuesCollection 包含实现 IDataSource 接口并可用于给定上下文的控件的名称。
注解
该方法 GetStandardValues 创建一个列表,该列表列出了在由参数指定的 context 对象的容器中有效数据源的组件的名称。 然后将该列表转换为对象 TypeConverter.StandardValuesCollection 。