語言

EntityContainer.TryGetEntitySetByName(String, Boolean, EntitySet) 方法

定義

透過使用指定的實體集合名稱回傳 EntitySet 物件。

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

參數

name
String

搜尋的實體集合名稱。

ignoreCase
Boolean

在執行大小不相關搜尋時為真;否則,則為錯誤。

entitySet
EntitySet

當此方法回傳時,包含一個 EntitySet 物件。 若沒有實體設定,此輸出參數包含 null。

傳回

若存在符合搜尋條件的實體集合,則為真;否則,則為錯誤。

適用於