ExtensionMethods.EnumDefinition Method

Gets the enumeration type to which the type refers.

Namespace:  Microsoft.Data.Edm
Assembly:  Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function EnumDefinition ( _
    type As IEdmEnumTypeReference _
) As IEdmEnumType
'Usage
Dim type As IEdmEnumTypeReference 
Dim returnValue As IEdmEnumType 

returnValue = type.EnumDefinition()
public static IEdmEnumType EnumDefinition(
    this IEdmEnumTypeReference type
)
[ExtensionAttribute]
public:
static IEdmEnumType^ EnumDefinition(
    IEdmEnumTypeReference^ type
)
static member EnumDefinition : 
        type:IEdmEnumTypeReference -> IEdmEnumType
public static function EnumDefinition(
    type : IEdmEnumTypeReference
) : IEdmEnumType

Parameters

Return Value

Type: Microsoft.Data.Edm.IEdmEnumType
The definition of an enumeration type.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmEnumTypeReference. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.103) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).

See Also

Reference

ExtensionMethods Class

Microsoft.Data.Edm Namespace