XamlMember.LookupIsWriteOnly 方法

定義

傳回這個 XamlMember 是否表示具有公用 set 存取子但沒有公用 get 存取子的成員。

protected:
 virtual bool LookupIsWriteOnly();
protected virtual bool LookupIsWriteOnly ();
abstract member LookupIsWriteOnly : unit -> bool
override this.LookupIsWriteOnly : unit -> bool
Protected Overridable Function LookupIsWriteOnly () As Boolean

傳回

如果這個 XamlMember 表示唯寫成員,則為 true,否則為 false

備註

如果 UnderlyingMember 存在,且具有公用 set 存取子和非公用 get 存取子,則預設實作會 true 傳回 ,如內部反映所決定。

當呼叫端從 IsWriteOnly 取得值時,會叫用這個方法。 如果您想要報告整個 XamlMember 衍生類別的統一結果,或者您是否有特殊中繼資料可供個別判斷,請覆寫這個方法。

適用於

另請參閱