ערוך

שתף באמצעות


ItemCollection.GetItem Method

Definition

Returns an item that is specified by the identity.

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:
generic <typename T>
 where T : System::Data::Metadata::Edm::GlobalItem T GetItem(System::String ^ identity);
public T GetItem<T> (string identity) where T : System.Data.Metadata.Edm.GlobalItem;
member this.GetItem : string -> 'T (requires 'T :> System.Data.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:
generic <typename T>
 where T : System::Data::Metadata::Edm::GlobalItem T GetItem(System::String ^ identity, bool ignoreCase);
public T GetItem<T> (string identity, bool ignoreCase) where T : System.Data.Metadata.Edm.GlobalItem;
member this.GetItem : string * bool -> 'T (requires 'T :> System.Data.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