WebControl.HasAttributes Свойство
Определение
Получает значение, определяющие наличие атрибутов у элемента управления.Gets a value indicating whether the control has attributes set.
public:
property bool HasAttributes { bool get(); };
[System.ComponentModel.Browsable(false)]
public bool HasAttributes { get; }
[<System.ComponentModel.Browsable(false)>]
member this.HasAttributes : bool
Public ReadOnly Property HasAttributes As Boolean
Значение свойства
true
, если элемент управления имеет заданные атрибуты; в противном случае — значение false
.true
if the control has attributes set; otherwise, false
.
- Атрибуты
Комментарии
HasAttributesСвойство возвращает, true
когда у WebControl экземпляра есть пары "имя-значение" атрибута.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.