CodeMemberProperty.HasSet 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個值,表示該屬性 set 是否有方法存取器。
public:
property bool HasSet { bool get(); void set(bool value); };
public bool HasSet { get; set; }
member this.HasSet : bool with get, set
Public Property HasSet As Boolean
屬性值
true 若集合 Count 的 SetStatements 性質非零;否則, false。
備註
HasSet 若該屬性為唯讀,則會回傳 false 。
Note
將此屬性設為 會 false 清除該 SetStatements 集合。