MetadataWorkspace::TryGetItem<T> Method (String^, DataSpace, T%)

 

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

Namespace:   System.Data.Metadata.Edm
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public:
generic<typename T>
where T : GlobalItem
bool TryGetItem(
	String^ identity,
	DataSpace space,
	[OutAttribute] T% item
)

Parameters

identity
Type: System::String^

The conceptual model on which the item is searched.

space
Type: System.Data.Metadata.Edm::DataSpace

The conceptual model on which the item is searched.

item
Type: T%

When this method returns, contains a T:System.Data.Metadata.Edm.GlobalIem object. This parameter is passed uninitialized.

Return Value

Type: System::Boolean

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

Type Parameters

T

The type returned by the method.

.NET Framework
Available since 3.5
Return to top
Show: