MetadataWorkspace.TryGetItem<T> Method (String, Boolean, 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 bool TryGetItem<T>(
	string identity,
	bool ignoreCase,
	DataSpace dataSpace,
	out T item
)
where T : GlobalItem

Parameters

identity
Type: System.String

The conceptual model on which the item is searched.

ignoreCase
Type: System.Boolean

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

dataSpace
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: