DataObjectMethodAttribute.IsDefault 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會取得一個值,表示該方法 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實例上的 ObjectDataSource 、 UpdateMethod、 DeleteMethod和 InsertMethod 屬性。
若 是DataObjectMethodAttribute使用僅取DataObjectMethodType參數的建構子所建立,則IsDefault屬性設為 falseDataObjectMethodAttribute(DataObjectMethodType) 。