Udostępnij za pośrednictwem


Sys.UI.Control Constructor

When called from a derived class, initializes a new instance of that class.

var a = new MyControl(element);

Parameters

Term

Definition

element

The Sys.UI.DomElement object that the control will be associated with.

Exceptions

Exception type

Condition

Error.invalidOperation Function

(Debug) The control is already defined.

Remarks

The Control constructor is a complete constructor function. However, because the Control class is an abstract base class, the constructor should be called only from derived classes.

See Also

Tasks

Creating Custom AJAX Client Controls

Reference

Sys.UI.Control Class

new Operator

Other Resources

Language Reference