Edit

Share via


MetadataWorkspace.TryGetEntityContainer Method

Definition

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

Overloads

TryGetEntityContainer(String, DataSpace, EntityContainer)

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

TryGetEntityContainer(String, Boolean, DataSpace, EntityContainer)

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

TryGetEntityContainer(String, DataSpace, EntityContainer)

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

public:
 bool TryGetEntityContainer(System::String ^ name, System::Data::Metadata::Edm::DataSpace dataSpace, [Runtime::InteropServices::Out] System::Data::Metadata::Edm::EntityContainer ^ % entityContainer);
public bool TryGetEntityContainer (string name, System.Data.Metadata.Edm.DataSpace dataSpace, out System.Data.Metadata.Edm.EntityContainer entityContainer);
member this.TryGetEntityContainer : string * System.Data.Metadata.Edm.DataSpace * EntityContainer -> bool
Public Function TryGetEntityContainer (name As String, dataSpace As DataSpace, ByRef entityContainer As EntityContainer) As Boolean

Parameters

name
String

The name of the entity container.

dataSpace
DataSpace

The conceptual model on which the entity container is searched.

entityContainer
EntityContainer

When this method returns, contains an EntityContainer object. If there is no entity container, this output parameter contains null; otherwise, it returns the first entity container. This parameter is passed uninitialized.

Returns

true if there is an entity container that matches the search criteria; otherwise, false.

Applies to

TryGetEntityContainer(String, Boolean, DataSpace, EntityContainer)

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

public:
 bool TryGetEntityContainer(System::String ^ name, bool ignoreCase, System::Data::Metadata::Edm::DataSpace dataSpace, [Runtime::InteropServices::Out] System::Data::Metadata::Edm::EntityContainer ^ % entityContainer);
public bool TryGetEntityContainer (string name, bool ignoreCase, System.Data.Metadata.Edm.DataSpace dataSpace, out System.Data.Metadata.Edm.EntityContainer entityContainer);
member this.TryGetEntityContainer : string * bool * System.Data.Metadata.Edm.DataSpace * EntityContainer -> bool
Public Function TryGetEntityContainer (name As String, ignoreCase As Boolean, dataSpace As DataSpace, 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.

dataSpace
DataSpace

The conceptual model on which the entity container is searched.

entityContainer
EntityContainer

When this method returns, contains an EntityContainer object. If there is no entity container, this output parameter contains null; otherwise, it returns the first entity container. This parameter is passed uninitialized.

Returns

true if there is an entity container that matches the search criteria; otherwise, false.

Applies to