DataFieldConverter.GetStandardValuesSupported(ITypeDescriptorContext) 方法

定義

取得值,表示這個物件是否傳回可以從清單選取的標準值集合。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

public:
 override bool GetStandardValuesSupported(System::ComponentModel::ITypeDescriptorContext ^ context);
public override bool GetStandardValuesSupported (System.ComponentModel.ITypeDescriptorContext context);
override this.GetStandardValuesSupported : System.ComponentModel.ITypeDescriptorContext -> bool
Public Overrides Function GetStandardValuesSupported (context As ITypeDescriptorContext) As Boolean

參數

context
ITypeDescriptorContext

ITypeDescriptorContext 物件,表示資料繫結元件或屬性所屬的控制項。

傳回

如果內容不為 Null 且可轉換成 IComponent,則為 true,否則為 false

備註

注意

您通常不會直接存取類型轉換器。 這個實作 TypeConverter 是供設計時間的數據綁定控件使用,並以 屬性上的 具現化 TypeConverterAttribute

適用於

另請參閱