Share via


MetadataWorkspace.TryGetItem Method

Definition

Overloads

TryGetItem<T>(String, DataSpace, T)

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

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

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

TryGetItem<T>(String, DataSpace, T)

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

public virtual bool TryGetItem<T> (string identity, System.Data.Entity.Core.Metadata.Edm.DataSpace space, out T item) where T : System.Data.Entity.Core.Metadata.Edm.GlobalItem;
abstract member TryGetItem : string * System.Data.Entity.Core.Metadata.Edm.DataSpace *  -> bool (requires 'T :> System.Data.Entity.Core.Metadata.Edm.GlobalItem)
override this.TryGetItem : string * System.Data.Entity.Core.Metadata.Edm.DataSpace *  -> bool (requires 'T :> System.Data.Entity.Core.Metadata.Edm.GlobalItem)
Public Overridable Function TryGetItem(Of T As GlobalItem) (identity As String, space As DataSpace, ByRef item As T) As Boolean

Type Parameters

T

The type returned by the method.

Parameters

identity
String

The conceptual model on which the item is searched.

space
DataSpace

The conceptual model on which the item is searched.

item
T

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

Returns

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

Applies to

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

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

public virtual bool TryGetItem<T> (string identity, bool ignoreCase, System.Data.Entity.Core.Metadata.Edm.DataSpace dataSpace, out T item) where T : System.Data.Entity.Core.Metadata.Edm.GlobalItem;
abstract member TryGetItem : string * bool * System.Data.Entity.Core.Metadata.Edm.DataSpace *  -> bool (requires 'T :> System.Data.Entity.Core.Metadata.Edm.GlobalItem)
override this.TryGetItem : string * bool * System.Data.Entity.Core.Metadata.Edm.DataSpace *  -> bool (requires 'T :> System.Data.Entity.Core.Metadata.Edm.GlobalItem)

Type Parameters

T

The type returned by the method.

Parameters

identity
String

The conceptual model on which the item is searched.

ignoreCase
Boolean

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

dataSpace
DataSpace

The conceptual model on which the item is searched.

item
T

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

Returns

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

Applies to