MetadataWorkspace.GetItem MetadataWorkspace.GetItem MetadataWorkspace.GetItem Method

Definition

Returns an item by using the specified identity and the data model.

Overloads

GetItem<T>(String, DataSpace) GetItem<T>(String, DataSpace) GetItem<T>(String, DataSpace)

Returns an item by using the specified identity and the data model.

GetItem<T>(String, Boolean, DataSpace) GetItem<T>(String, Boolean, DataSpace) GetItem<T>(String, Boolean, DataSpace)

Returns an item by using the specified identity and the data model.

GetItem<T>(String, DataSpace) GetItem<T>(String, DataSpace) GetItem<T>(String, DataSpace)

Returns an item by using the specified identity and the data model.

public:
generic <typename T>
 where T : System::Data::Metadata::Edm::GlobalItem T GetItem(System::String ^ identity, System::Data::Metadata::Edm::DataSpace dataSpace);
public T GetItem<T> (string identity, System.Data.Metadata.Edm.DataSpace dataSpace) where T : System.Data.Metadata.Edm.GlobalItem;
member this.GetItem : string * System.Data.Metadata.Edm.DataSpace -> 'T (requires 'T :> System.Data.Metadata.Edm.GlobalItem)

Type Parameters

T

The type returned by the method.

Parameters

identity
String String String

The identity of the item.

dataSpace
DataSpace DataSpace DataSpace

The conceptual model in which the item is searched.

Returns

T T T

The item that matches the given identity in the specified data model.

GetItem<T>(String, Boolean, DataSpace) GetItem<T>(String, Boolean, DataSpace) GetItem<T>(String, Boolean, DataSpace)

Returns an item by using the specified identity and the data model.

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

Type Parameters

T

The type returned by the method.

Parameters

identity
String String String

The identity of the item.

ignoreCase
Boolean Boolean Boolean

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

dataSpace
DataSpace DataSpace DataSpace

The conceptual model on which the item is searched.

Returns

T T T

The item that matches the given identity in the specified data model.

Applies to