Share via


DictEnum::value2id Method

Returns the enumeration ID of a specified value.

Syntax

client server public static int value2id(anytype value)

Run On

Called

Parameters

  • value
    Type: anytype
    The value for which the enumeration ID is being queried. The value parameter can be of any type.

Return Value

Type: int
The enumeration ID of value if value is an enumeration; otherwise, 0 (zero).

Remarks

The value parameter can be of any type.

See Also

Reference

DictEnum Class