ItemCollection.GetEntityContainer 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.
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.
Applies to
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.