CodeMemberProperty.HasGet 屬性

定義

取得或設定數值,表示屬性是否有 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 集合。

適用於

另請參閱