Επεξεργασία

Κοινή χρήση μέσω


MetadataWorkspace.GetItem Method

Definition

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

Overloads

GetItem<T>(String, DataSpace)

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

GetItem<T>(String, Boolean, DataSpace)

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

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)
Public Function GetItem(Of T As GlobalItem) (identity As String, dataSpace As DataSpace) As T

Type Parameters

T

The type returned by the method.

Parameters

identity
String

The identity of the item.

dataSpace
DataSpace

The conceptual model in which the item is searched.

Returns

T

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

Applies to

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)
Public Function GetItem(Of T As GlobalItem) (identity As String, ignoreCase As Boolean, dataSpace As DataSpace) 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.

dataSpace
DataSpace

The conceptual model on which the item is searched.

Returns

T

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

Applies to