DataProviderNameConverter.GetStandardValues(ITypeDescriptorContext) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回.NET框架(ADO.NET)提供程序名称的可用 ActiveX® 数据对象(ADO)列表。
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 对象,该对象提供有关类型转换器上下文的信息,以便类型转换器可以执行转换。
返回
包含可用 ADO.NET 提供程序名称的 TypeConverter.StandardValuesCollection。
注解
GetStandardValues 方法使用 GetFactoryClasses 方法返回包含 ADO.NET 提供程序名称的 DataTable 对象。 它将它 DataTable 转换为字符串数组,然后将此数组转换为对象 TypeConverter.StandardValuesCollection 。
参数 context 不由 GetStandardValues.