共用方式為


DataObjectMethodAttribute.IsDefault 屬性

定義

會取得一個值,表示該方法 DataObjectMethodAttribute 套用的是否是資料物件針對特定方法類型所暴露的預設資料方法。

public:
 property bool IsDefault { bool get(); };
public bool IsDefault { get; }
member this.IsDefault : bool
Public ReadOnly Property IsDefault As Boolean

屬性值

true如果該方法是物件對某方法類型所暴露的預設方法;否則,。 false

備註

控制項 ObjectDataSource 利用此 IsDefault 特性區分多個符合特定方法類型簽名要求的方法。 若兩個方法符合簽名要求,則選擇屬性 IsDefault 設為 的方法 true

在設計時,該IsDefault屬性用於自動設定SelectMethod實例上的 ObjectDataSourceUpdateMethodDeleteMethodInsertMethod 屬性。

若 是DataObjectMethodAttribute使用僅取DataObjectMethodType參數的建構子所建立,則IsDefault屬性設為 falseDataObjectMethodAttribute(DataObjectMethodType)

適用於