DataMemberConverter.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 物件,指示要取得該元件或控制項的值。
傳回
A TypeConverter.StandardValuesCollection 列出該元件所選資料來源的資料成員。
備註
轉換器利用 IDataSourceProvider 相關元件設計器的實作來擷取目前的資料來源選擇。