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。