語言

CodeMemberProperty.HasSet 屬性

定義

取得或設定一個值,表示該屬性 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 集合。

適用於

另請參閱