Partilhar via


DictEnum.value2Label(Int32) Method

Definition

Returns the label of a specified enumeration value.

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

Parameters

_value
Int32

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

Returns

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

Remarks

Enumeration items are not required to have a label. This method cannot be used to determine whether a value exists in the enumeration. To determine whether a value exists in the enumeration, use the DictEnum::value2Symbol method.

Applies to