DataProviderNameConverter.GetStandardValues(ITypeDescriptorContext) メソッド

定義

.NET Framework (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では使用されません。

適用対象

こちらもご覧ください