Share via


ExtensionMethods.Key Method (IEdmEntityTypeReference)

Gets the key.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function Key ( _
    type As IEdmEntityTypeReference _
) As IEnumerable(Of IEdmStructuralProperty)
'Usage
Dim type As IEdmEntityTypeReference 
Dim returnValue As IEnumerable(Of IEdmStructuralProperty)

returnValue = type.Key()
public static IEnumerable<IEdmStructuralProperty> Key(
    this IEdmEntityTypeReference type
)
[ExtensionAttribute]
public:
static IEnumerable<IEdmStructuralProperty^>^ Key(
    IEdmEntityTypeReference^ type
)
static member Key : 
        type:IEdmEntityTypeReference -> IEnumerable<IEdmStructuralProperty> 
public static function Key(
    type : IEdmEntityTypeReference
) : IEnumerable<IEdmStructuralProperty>

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<IEdmStructuralProperty>
The key.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmEntityTypeReference. 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.113) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.113).

See Also

Reference

ExtensionMethods Class

Key Overload

Microsoft.Data.Edm Namespace