Share via


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

屬性值

如果 Count 集合的 SetStatements 屬性不是零,則為 true,否則為 false

備註

HasSet 如果屬性是唯讀的,則會傳回 false

注意

將此屬性設定為 false 將會清除 SetStatements 集合。

適用於

另請參閱