Redigera

Dela via


EntityContainer.TryGetEntitySetByName(String, Boolean, EntitySet) Method

Definition

Returns an EntitySet object by using the specified name for the entity set.

public:
 bool TryGetEntitySetByName(System::String ^ name, bool ignoreCase, [Runtime::InteropServices::Out] System::Data::Metadata::Edm::EntitySet ^ % entitySet);
public bool TryGetEntitySetByName (string name, bool ignoreCase, out System.Data.Metadata.Edm.EntitySet entitySet);
member this.TryGetEntitySetByName : string * bool * EntitySet -> bool
Public Function TryGetEntitySetByName (name As String, ignoreCase As Boolean, ByRef entitySet As EntitySet) As Boolean

Parameters

name
String

The name of the entity set that is searched for.

ignoreCase
Boolean

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

entitySet
EntitySet

When this method returns, contains an EntitySet object. If there is no entity set, this output parameter contains null.

Returns

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

Applies to