DictEnum.value2Symbol(Int32) Method

Definition

Returns the symbol, or the value of the Name property, of a specified enumeration value.

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

Parameters

_value
Int32

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

Returns

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

Remarks

Enumeration values are required to have a symbol. This method can be used to determine whether an enumeration value exists by checking whether the return value is an empty string.

Applies to