ערוך

שתף באמצעות


ItemCollection.TryGetEntityContainer Method

Definition

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

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