Freigeben über


EntityContainer.TryGetRelationshipSetByName-Methode

[Diese Seite bezieht sich auf Entity Framework Version 6. Die neueste Version ist als 'Entity Framework' NuGet-Paket verfügbar. Weitere Informationen zu Entity Framework finden Sie unter msdn.com/data/ef.]

Gibt mithilfe des angegebenen Namens für den Beziehungssatz ein RelationshipSet-Objekt zurück.

Namespace:  System.Data.Entity.Core.Metadata.Edm
Assembly:  EntityFramework (in EntityFramework.dll)

Syntax

'Declaration
Public Function TryGetRelationshipSetByName ( _
    name As String, _
    ignoreCase As Boolean, _
    <OutAttribute> ByRef relationshipSet As RelationshipSet _
) As Boolean
'Usage
Dim instance As EntityContainer 
Dim name As String 
Dim ignoreCase As Boolean 
Dim relationshipSet As RelationshipSet 
Dim returnValue As Boolean 

returnValue = instance.TryGetRelationshipSetByName(name, _
    ignoreCase, relationshipSet)
public bool TryGetRelationshipSetByName(
    string name,
    bool ignoreCase,
    out RelationshipSet relationshipSet
)
public:
bool TryGetRelationshipSetByName(
    String^ name, 
    bool ignoreCase, 
    [OutAttribute] RelationshipSet^% relationshipSet
)
member TryGetRelationshipSetByName : 
        name:string * 
        ignoreCase:bool * 
        relationshipSet:RelationshipSet byref -> bool
public function TryGetRelationshipSetByName(
    name : String, 
    ignoreCase : boolean, 
    relationshipSet : RelationshipSet
) : boolean

Parameter

  • name
    Typ: System.String
    Der Name des Beziehungssatzes, der gesucht wird.
  • ignoreCase
    Typ: System.Boolean
    true, wenn eine Suche ohne Berücksichtigung der Groß- und Kleinschreibung erfolgen soll, andernfalls false.

Rückgabewert

Typ: System.Boolean
true, wenn ein Beziehungssatz vorhanden ist, der den Suchkriterien entspricht, andernfalls false.

Siehe auch

Verweis

EntityContainer Klasse

System.Data.Entity.Core.Metadata.Edm-Namespace