DetailsView.IsBindableType(Type) 方法

定義

判斷指定的資料型別是否可以繫結至 DetailsView 控制項中的欄位。

public:
 virtual bool IsBindableType(Type ^ type);
public virtual bool IsBindableType (Type type);
abstract member IsBindableType : Type -> bool
override this.IsBindableType : Type -> bool
Public Overridable Function IsBindableType (type As Type) As Boolean

參數

type
Type

Type,表示要檢查的資料型別。

傳回

如果指定資料型別可以繫結至 DetailsView 控制項中的欄位,則為 true,否則為 false

備註

方法是 IsBindableType 控制項所 DetailsView 呼叫的協助程式方法,可判斷指定的資料類型是否可以系結至控制項中的欄位。 控制項 DetailsView 支援下列資料類型:

所有基本資料類型,例如 BooleanByteInt32

DateTime

Decimal

Guid

String

給繼承者的注意事項

擴充 DetailsView 類別時,您可以覆寫這個方法,以新增或限制可在 控制項中使用的 DetailsView 資料類型。

適用於

另請參閱