EntityContainer.TryGetRelationshipSetByName 方法

定义

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

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

参数

name
String

要搜索的关系集的名称。

ignoreCase
Boolean

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

relationshipSet
RelationshipSet

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

返回

如果存在与搜索条件匹配的关系集,则为 true;否则为 false。

适用于