Share via


EntityContainer.TryGetRelationshipSetByName 方法

定义

使用关系集的指定名称返回一个 RelationshipSet 对象。

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

参数

name
String

要搜索的关系集的名称。

ignoreCase
Boolean

如果执行不区分大小写的搜索,则为 true;否则为 false

relationshipSet
RelationshipSet

它在此方法返回时会包含一个 RelationshipSet 对象。

返回

如果存在符合搜索条件的关系集,则为 true;否则为 false

适用于