DataFieldConverter.GetStandardValues(ITypeDescriptorContext) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
若有相關資訊,並依所提供的上下文獲得所選資料來源欄位的清單。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱
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 包含資料來源中欄位名稱清單的物件。
備註
Note
通常你不會直接使用類型轉換器。 此實 TypeConverter 作設計時供資料綁定控制使用,並以 a TypeConverterAttribute 實例化於屬性上。