src/Shared/EntityFramework/Core/Metadata/Edm/ItemCollection.cs
/// <summary>
/// Returns an <see cref="T:System.Data.Entity.Core.Metadata.Edm.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.
/// </summary>
/// <returns>true if there is an entity container that matches the search criteria; otherwise, false.</returns>
/// <param name="name">The name of the entity container.</param>
/// <param name="ignoreCase">true to perform the case-insensitive search; otherwise, false.</param>
/// <param name="entityContainer">
/// When this method returns, it contains an <see cref="T:System.Data.Entity.Core.Metadata.Edm.EntityContainer" /> object. If there is no entity container, this output parameter contains null; otherwise, it contains the first entity container.
/// </param>
Returns an  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.
Returns an 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 EntityContainer entityContainer)
        {
            Check.NotNull(name, "name");
            GlobalItem item = null;
            if (TryGetValue(name, ignoreCase, out item)
                && Helper.IsEntityContainer(item))
            {
                entityContainer = (EntityContainer)item;
                return true;
            }
            entityContainer = null;
            return false;
        }
public bool TryGetEntityContainer ( string name , bool ignoreCase , out EntityContainer entityContainer ) { Check . NotNull ( name , " " ) ; GlobalItem item = null ; if ( TryGetValue ( name , ignoreCase , out item ) && Helper . IsEntityContainer ( item ) ) { entityContainer = ( EntityContainer ) item ; return true ; } entityContainer = null ; return false ; }
Returns an  object by using the specified entity container name.
Returns an object by using the specified entity container name .
true if there is an entity container that matches the search criteria; otherwise, false.
true if there is an entity container that matches the search criteria ; otherwise false .
name
string
The name of the entity container.
The name of the entity container .
ignoreCase
bool
true to perform the case-insensitive search; otherwise, false.
true to perform the case - insensitive search ; otherwise false .
EntityContainer
out
entityContainer
When this method returns, it contains an  object. If there is no entity container, this output parameter contains null; otherwise, it contains the first entity container.
When this method returns it contains an object . If there is no entity container this output parameter contains null ; otherwise it contains the first entity container .