共用方式為


EntityContainer.TryGetRelationshipSetByName 方法

定義

使用關聯性 (Relationship) 集合的指定名稱傳回 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。

適用於