Share via


StringExtensions.ToEnum<T> Method (String)

 

Applies To: Dynamics CRM 2013

Parses a name value into an Enum value.

Namespace:   Microsoft.Xrm.Client
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)

Syntax

public static T ToEnum<T>(
    this string enumName
)
public:
generic<typename T>
[ExtensionAttribute]
static T ToEnum(
    String^ enumName
)
static member ToEnum<'T> : 
        enumName:string -> 'T
<ExtensionAttribute>
Public Shared Function ToEnum(Of T) (
    enumName As String
) As T

Parameters

Return Value

Type: T

Type: Type
The Enum value.

Type Parameters

  • T
    Type T.

See Also

ToEnum Overload
StringExtensions Class
Microsoft.Xrm.Client Namespace

Return to top