EntityContainer.TryGetEntitySetByName(String, Boolean, EntitySet) 方法
定义
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;否则为 false。true 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.
返回
如果存在符合搜索条件的实体集,则为 true;否则为 false。true if there is an entity set that matches the search criteria; otherwise, false.