XamlMember.LookupIsReadOnly 方法

定義

傳回這個 XamlMember 是否表示所需的唯讀屬性。

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

傳回

true 報告這個 XamlMember 為所需的唯讀屬性,否則為 false

備註

如果 UnderlyingMember 存在,則預設實作會 true 傳回 ,但公用 set 存取子不存在,如內部反映所決定。

當呼叫端從 IsReadOnly 取得值時,會叫用這個方法。 如果您想要報告整個 XamlMember 衍生類別的統一結果,或者如果您有可解譯的特製化中繼資料,可以逐一判斷 XAML 類型系統標記法,請覆寫這個方法。

適用於

另請參閱