ItemCollection.GetEntityContainer Method

Definition

Returns an EntityContainer object by using the specified entity container name.

Overloads

GetEntityContainer(String)

Returns an EntityContainer object by using the specified entity container name.

GetEntityContainer(String, Boolean)

Returns an EntityContainer object by using the specified entity container name.

GetEntityContainer(String)

Returns an EntityContainer object by using the specified entity container name.

public:
 System::Data::Metadata::Edm::EntityContainer ^ GetEntityContainer(System::String ^ name);
public System.Data.Metadata.Edm.EntityContainer GetEntityContainer (string name);
member this.GetEntityContainer : string -> System.Data.Metadata.Edm.EntityContainer
Public Function GetEntityContainer (name As String) As EntityContainer

Parameters

name
String

The name of the entity container.

Returns

If there is no entity container, this method returns null; otherwise, it returns the first one.

GetEntityContainer(String, Boolean)

Returns an EntityContainer object by using the specified entity container name.

public:
 System::Data::Metadata::Edm::EntityContainer ^ GetEntityContainer(System::String ^ name, bool ignoreCase);
public System.Data.Metadata.Edm.EntityContainer GetEntityContainer (string name, bool ignoreCase);
member this.GetEntityContainer : string * bool -> System.Data.Metadata.Edm.EntityContainer
Public Function GetEntityContainer (name As String, ignoreCase As Boolean) As EntityContainer

Parameters

name
String

The name of the entity container.

ignoreCase
Boolean

true to perform the case-insensitive search; otherwise, false.

Returns

If there is no entity container, this method returns null; otherwise, it returns the first entity container.

Applies to