Share via


ItemCollection.TryGetEntityContainer Method

Definition

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