語言

DataFieldConverter.GetStandardValues(ITypeDescriptorContext) 方法

定義

若有相關資訊,並依所提供的上下文獲得所選資料來源欄位的清單。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &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 實例化於屬性上。

適用於

另請參閱