Freigeben über


SerializationExtensionMethods.GetAssociationName-Methode

Ruft den Namen für die für eine Navigationseigenschaft serialisierte Zuordnung ab.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetAssociationName ( _
    model As IEdmModel, _
    property As IEdmNavigationProperty _
) As String
'Usage
Dim model As IEdmModel
Dim property As IEdmNavigationProperty
Dim returnValue As String

returnValue = model.GetAssociationName(property)
public static string GetAssociationName(
    this IEdmModel model,
    IEdmNavigationProperty property
)
[ExtensionAttribute]
public:
static String^ GetAssociationName(
    IEdmModel^ model, 
    IEdmNavigationProperty^ property
)
static member GetAssociationName : 
        model:IEdmModel * 
        property:IEdmNavigationProperty -> string 
public static function GetAssociationName(
    model : IEdmModel, 
    property : IEdmNavigationProperty
) : String

Parameter

Rückgabewert

Typ: System.String
Der Zuordnungsname.

Hinweis zur Verwendung

In Visual Basic und C# können Sie die Methode als Instanzenmethode für jedes Objekt vom Typ IEdmModel 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

SerializationExtensionMethods Klasse

Microsoft.Data.Edm.Csdl-Namespace