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

属性值

如果集合的属性为非零,则为

注解

HasSet 如果属性为只读,将返回 false

注释

将此属性设置为 false 清除 SetStatements 集合。

适用于

另请参阅