WebControl.HasAttributes Property

Definition

获取一个值,该值指示控件是否具有特性集。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

Property Value

Boolean

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

Attributes

Remarks

WebControl 实例具有属性名称/值对时,HasAttributes 属性返回 trueThe 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.

Applies to

See also