StringExtensions.ToEnum<T> Method (String)
Applies To: Dynamics CRM 2015
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
enumName
Type: System.StringType: String. The enumeration value.
Return Value
Type: T
Type Parameters
- T
Type T.
See Also
ToEnum Overload
StringExtensions Class
Microsoft.Xrm.Client Namespace
Return to top
© 2017 Microsoft. All rights reserved. Copyright