StringExtensions.ToEnum<T> Method (Int32)
Applies To: Dynamics CRM 2015
Converts an integer 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 int enumValue
)
public:
generic<typename T>
[ExtensionAttribute]
static T ToEnum(
int enumValue
)
static member ToEnum<'T> :
enumValue:int -> 'T
<ExtensionAttribute>
Public Shared Function ToEnum(Of T) (
enumValue As Integer
) As T
Parameters
enumValue
Type: System.Int32Type: Int32. 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