Partager via


DictEnum.name2Value(String) Method

Definition

Returns the enumeration value of the item that is referenced by its label.

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

Parameters

_name
String

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

Returns

The enumeration value for name; 255 if name is not a valid label of an enumeration.

Remarks

For backward compatibility with earlier versions of Finance and Operations, name refers to the label. Enumeration items that do not have labels cannot be found by using the DictEnum::name2Value method.

Applies to