Parameters
- value
- The enumeration value to be found.
Return Value
null
reference. When there is more than one match, the first matching enumeration member found is returned.
This method can return null
(Nothing
in Visual Basic).
null
reference. When there is more than one match, the first matching enumeration member found is returned.
This method can return null
(Nothing
in Visual Basic).
Exception | Description |
---|---|
System.ArgumentOutOfRangeException | The value of an argument is outside the allowable range of values as defined by the invoked method. This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception. |
For finding an enumeration value that corresponds to given name, use the fact that EnumerationMembers is a collection keyed by the enumeration member names.
This member is not compatible with VBScript.