EdmTypeSemantics.AsEnum(IEdmTypeReference) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
If this reference is of an enumeration type, this will return a valid enumeration type reference to the type definition. Otherwise, it will return a bad enumeration type reference.
public static Microsoft.OData.Edm.IEdmEnumTypeReference AsEnum (this Microsoft.OData.Edm.IEdmTypeReference type);
static member AsEnum : Microsoft.OData.Edm.IEdmTypeReference -> Microsoft.OData.Edm.IEdmEnumTypeReference
<Extension()>
Public Function AsEnum (type As IEdmTypeReference) As IEdmEnumTypeReference
Parameters
- type
- IEdmTypeReference
Reference to the calling object.
Returns
A valid enumeration type reference if the definition of the reference is of an enumeration type. Otherwise a bad enumeration type reference.