Share via


Type.registerEnum Method (Microsoft Ajax)

Registers an enumeration.

public function registerEnum(
    name : String,
    flags : Boolean
)

Parameters

Parameter

Description

name

The fully-qualified name of the enumeration.

flags

(Optional) true if the enumeration is a collection of flags; otherwise, false.

Exceptions

Exception type

Condition

Error.argument Function

(Debug) name is not a fully qualified type name.

Error.invalidOperation Function

(Debug) name is not a valid type.

See Also

Reference

Type Class