Freigeben über


ExtensionMethods.DeclaringEntityType-Methode

Ruft den Entitätstyp ab, der diese Navigationseigenschaft deklariert.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function DeclaringEntityType ( _
    property As IEdmNavigationProperty _
) As IEdmEntityType
'Usage
Dim property As IEdmNavigationProperty
Dim returnValue As IEdmEntityType

returnValue = property.DeclaringEntityType()
public static IEdmEntityType DeclaringEntityType(
    this IEdmNavigationProperty property
)
[ExtensionAttribute]
public:
static IEdmEntityType^ DeclaringEntityType(
    IEdmNavigationProperty^ property
)
static member DeclaringEntityType : 
        property:IEdmNavigationProperty -> IEdmEntityType 
public static function DeclaringEntityType(
    property : IEdmNavigationProperty
) : IEdmEntityType

Parameter

Rückgabewert

Typ: Microsoft.Data.Edm.IEdmEntityType
Der Entitätstyp, der diese Navigationseigenschaft deklariert.

Hinweis zur Verwendung

In Visual Basic und C# können Sie die Methode als Instanzenmethode für jedes Objekt vom Typ IEdmNavigationProperty aufrufen. Wenn Sie Instanzmethodensyntax zum Aufruf dieser Methode verwenden, vernachlässigen Sie den ersten Parameter. Weitere Informationen finden Sie unter https://msdn.microsoft.com/de-de/library/bb384936(v=vs.103) oder https://msdn.microsoft.com/de-de/library/bb383977(v=vs.103).

Siehe auch

Verweis

ExtensionMethods Klasse

Microsoft.Data.Edm-Namespace