Jaa


DictEnum.value2Name(Int32) Method

Definition

Returns the name of a specified enumeration value.

public:
 virtual System::String ^ value2Name(int _value);
public virtual string value2Name (int _value);
abstract member value2Name : int -> string
override this.value2Name : int -> string
Public Overridable Function value2Name (_value As Integer) As String

Parameters

_value
Int32

The integer value for the enumeration for which the label is being retrieved.

Returns

The name for value; an empty string if there is no name for value or value is not a valid enumeration.

Remarks

To determine whether a value is in the enumeration, use the value2Symbol method instead. The value2Name method cannot be used to determine whether a value is in the enumeration, because enumeration items are not required to have a label.

Applies to