共用方式為


DataSourceViewSchemaConverter.GetStandardValuesSupported 方法

定義

指出這個轉換子是否傳回一組可用值,以指派給指定內容內的控制項屬性。

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 實作,可以用來取得其他內容資訊。

傳回

如果這個轉換子傳回一組標準可用值,以指派給關聯的控制項屬性則為 true,否則為 false

備註

方法 GetStandardValuesSupported 指出轉換器是否支援透過 GetStandardValues 方法傳回可用值清單。

GetStandardValuesSupported如果指定的 context 物件在其 IDataSourceViewSchemaAccessor 屬性中 Instance 提供實作 DataSourceViewSchemaConverter ,則 物件的方法會傳回 true 。 方法會使用 實 GetStandardValuesIDataSourceViewSchemaAccessor ,從相關聯的資料來源架構擷取可用的欄位清單。

適用於

另請參閱