Share via


DictEnum.value2id(Object) Method

Definition

Returns the enumeration ID of a specified value.

public:
 static int value2id(System::Object ^ _value);
public static int value2id (object _value);
static member value2id : obj -> int
Public Shared Function value2id (_value As Object) As Integer

Parameters

_value
Object

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

Returns

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

Remarks

The value parameter can be of any type.

Applies to