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

定义

使用实体集的指定名称返回一个 EntitySet 对象。Returns an EntitySet object by using the specified name for the entity set.

public:
 bool TryGetEntitySetByName(System::String ^ name, bool ignoreCase, [Runtime::InteropServices::Out] System::Data::Metadata::Edm::EntitySet ^ % entitySet);
public bool TryGetEntitySetByName (string name, bool ignoreCase, out System.Data.Metadata.Edm.EntitySet entitySet);
member this.TryGetEntitySetByName : string * bool * EntitySet -> bool
Public Function TryGetEntitySetByName (name As String, ignoreCase As Boolean, ByRef entitySet As EntitySet) As Boolean

参数

name
String

要搜索的实体集的名称。The name of the entity set that is searched for.

ignoreCase
Boolean

如果执行不区分大小写的搜索,则为 true;否则为 falsetrue to perform the case-insensitive search; otherwise, false.

entitySet
EntitySet

它在此方法返回时会包含一个 EntitySet 对象。When this method returns, contains an EntitySet object. 如果不存在实体集,此输出参数将包含 null。If there is no entity set, this output parameter contains null.

返回

Boolean

如果存在符合搜索条件的实体集,则为 true;否则为 falsetrue if there is an entity set that matches the search criteria; otherwise, false.

适用于