Bewerken

Delen via


EntityContainer.TryGetRelationshipSetByName Method

Definition

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

public:
 bool TryGetRelationshipSetByName(System::String ^ name, bool ignoreCase, [Runtime::InteropServices::Out] System::Data::Metadata::Edm::RelationshipSet ^ % relationshipSet);
public bool TryGetRelationshipSetByName (string name, bool ignoreCase, out System.Data.Metadata.Edm.RelationshipSet relationshipSet);
member this.TryGetRelationshipSetByName : string * bool * RelationshipSet -> 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