CodeMemberProperty.HasSet 属性

定义

获取或设置指示该属性是否具有 set 方法访问器的值。Gets or sets a value indicating whether the property has a set method accessor.

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

属性值

Boolean

如果 Count 集合的 SetStatements 属性不为零,则为 true;否则,为 falsetrue if the Count property of the SetStatements collection is non-zero; otherwise, false.

注解

HasSetfalse如果属性为只读,则返回。HasSet will return false if the property is read-only.

备注

如果将此属性设置为, false 则会清除该 SetStatements 集合。Setting this property to false will clear the SetStatements collection.

适用于

另请参阅