CodeMemberProperty.HasGet 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定數值,表示屬性是否有 get 方法存取子。
public:
property bool HasGet { bool get(); void set(bool value); };
public bool HasGet { get; set; }
member this.HasGet : bool with get, set
Public Property HasGet As Boolean
屬性值
如果 GetStatements 集合的 true 屬性不是零,或本屬性的值已設為 Count,則為 true,否則為 false。
備註
注意
將此屬性設定為 false 清除 GetStatements 集合。