WebControl.HasAttributes WebControl.HasAttributes WebControl.HasAttributes WebControl.HasAttributes Property

定义

获取一个值,该值指示控件是否具有特性集。Gets a value indicating whether the control has attributes set.

public:
 property bool HasAttributes { bool get(); };
[System.ComponentModel.Browsable(false)]
public bool HasAttributes { get; }
member this.HasAttributes : bool
Public ReadOnly Property HasAttributes As Boolean

属性值

如果控件有特性集,则为 true;否则为 falsetrue if the control has attributes set; otherwise, false.

注解

HasAttributes WebControl实例具有true属性名称/值对时,属性将返回。The HasAttributes property returns true when the WebControl instance has attribute name/value pairs. 可以在属性中或视图状态中设置属性对。The attribute pairs can be set either in the property or in the view state.

适用于

另请参阅