Share via


EntityContainer.TryGetRelationshipSetByName Method

Definition

Returns a RelationshipSet object by using the specified name for the relationship set.

public bool TryGetRelationshipSetByName (string name, bool ignoreCase, out System.Data.Entity.Core.Metadata.Edm.RelationshipSet relationshipSet);
member this.TryGetRelationshipSetByName : string * bool *  -> bool
Public Function TryGetRelationshipSetByName (name As String, ignoreCase As Boolean, ByRef relationshipSet As RelationshipSet) As Boolean

Parameters

name
String

The name of the relationship set that is searched for.

ignoreCase
Boolean

true to perform the case-insensitive search; otherwise, false.

relationshipSet
RelationshipSet

When this method returns, contains a RelationshipSet object.

Returns

true if there is a relationship set that matches the search criteria; otherwise, false.

Applies to