Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.








Type.registerInterface Method

Registers an interface defined by a constructor.


var interfaceVar = typeInstanceVar.registerInterface(typeName)



A string that represents the fully qualified name of the class to be registered as an interface.

Return Value

The registered interface.


Exception Type Condition


(Debug) typeName cannot be evaluated as a defined type.


(Debug) The interface specified by typeName is already registered.


Use the registerInterface method to register an interface as defined by a constructor.

You invoke the method after the interface has been defined, but before it is instantiated. The method is invoked directly from the type.

Implementing an Interface

Methods of the Type class support implementing an interface. Implement an interface by specifying a registered interface in the interfaceTypes parameter of the registerInterface method when you register a class.

Interfaces should not implement any members, because any class that implements the interface must overwrite those members.

See Also