ItemCollection.GetItem Method

Definition

Overloads

GetItem<T>(String)

Returns a strongly typed GlobalItem object by using the specified identity.

GetItem<T>(String, Boolean)

Returns a strongly typed GlobalItem object by using the specified identity with either case-sensitive or case-insensitive search.

GetItem<T>(String)

Returns a strongly typed GlobalItem object by using the specified identity.

public T GetItem<T> (string identity) where T : System.Data.Entity.Core.Metadata.Edm.GlobalItem;
member this.GetItem : string -> 'T (requires 'T :> System.Data.Entity.Core.Metadata.Edm.GlobalItem)
Public Function GetItem(Of T As GlobalItem) (identity As String) As T

Type Parameters

T

The type returned by the method.

Parameters

identity
String

The identity of the item.

Returns

T

The item that is specified by the identity.

Applies to

GetItem<T>(String, Boolean)

Returns a strongly typed GlobalItem object by using the specified identity with either case-sensitive or case-insensitive search.

public T GetItem<T> (string identity, bool ignoreCase) where T : System.Data.Entity.Core.Metadata.Edm.GlobalItem;
member this.GetItem : string * bool -> 'T (requires 'T :> System.Data.Entity.Core.Metadata.Edm.GlobalItem)
Public Function GetItem(Of T As GlobalItem) (identity As String, ignoreCase As Boolean) As T

Type Parameters

T

The type returned by the method.

Parameters

identity
String

The identity of the item.

ignoreCase
Boolean

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

Returns

T

The item that is specified by the identity.

Applies to