你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

EnumUtils.GetEnum<T>(String) Method

Definition

Gets the enum of type T given the string equivalent.

public static T GetEnum<T> (string enumValue);
static member GetEnum : string -> 'T
Public Shared Function GetEnum(Of T) (enumValue As String) As T

Type Parameters

T

Type of the enum represented by the string

Parameters

enumValue
String

String to be parsed

Returns

T

Applies to