ItemCollection.TryGetEntityContainer Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
TryGetEntityContainer(String, EntityContainer) |
Returns an EntityContainer object by using the specified entity container name. If there is no entity container, the output parameter contains null; otherwise, it contains the first entity container. |
TryGetEntityContainer(String, Boolean, EntityContainer) |
Returns an EntityContainer object by using the specified entity container name. If there is no entity container, this output parameter contains null; otherwise, it contains the first entity container. |
TryGetEntityContainer(String, EntityContainer)
Returns an EntityContainer object by using the specified entity container name. If there is no entity container, the output parameter contains null; otherwise, it contains the first entity container.
public bool TryGetEntityContainer (string name, out System.Data.Entity.Core.Metadata.Edm.EntityContainer entityContainer);
member this.TryGetEntityContainer : string * -> bool
Public Function TryGetEntityContainer (name As String, ByRef entityContainer As EntityContainer) As Boolean
Parameters
- name
- String
The name of the entity container.
- entityContainer
- EntityContainer
When this method returns, it contains an EntityContainer object. If there is no entity container, this output parameter contains null; otherwise, it contains the first entity container.
Returns
true if there is an entity container that matches the search criteria; otherwise, false.
Applies to
TryGetEntityContainer(String, Boolean, EntityContainer)
Returns an EntityContainer object by using the specified entity container name. If there is no entity container, this output parameter contains null; otherwise, it contains the first entity container.
public bool TryGetEntityContainer (string name, bool ignoreCase, out System.Data.Entity.Core.Metadata.Edm.EntityContainer entityContainer);
member this.TryGetEntityContainer : string * bool * -> bool
Public Function TryGetEntityContainer (name As String, ignoreCase As Boolean, ByRef entityContainer As EntityContainer) As Boolean
Parameters
- name
- String
The name of the entity container.
- ignoreCase
- Boolean
true to perform the case-insensitive search; otherwise, false.
- entityContainer
- EntityContainer
When this method returns, it contains an EntityContainer object. If there is no entity container, this output parameter contains null; otherwise, it contains the first entity container.
Returns
true if there is an entity container that matches the search criteria; otherwise, false.
Applies to
Entity Framework