ItemCollection.GetItem Method

 

Returns strongly typed MetadataItem from the collection that has the passed in identity.

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

NameDescription
System_CAPS_pubmethodGetItem<T>(String)

Returns a strongly typed GlobalItem object by using the specified identity.

System_CAPS_pubmethodGetItem<T>(String, Boolean)

Returns a strongly typed GlobalItem object by using the specified identity with either case-sensitive or case-insensitive search.


ItemCollection.GetItem<T> Method (String)

Returns a strongly typed GlobalItem object by using the specified identity.

public T GetItem<T>(
	string identity
)
where T : GlobalItem

Parameters

identity
Type: System.String

The identity of the item.

Return Value

Type: T

The item that is specified by the identity.

Type Parameters

T

The type returned by the method.


ItemCollection.GetItem<T> Method (String, Boolean)

Returns a strongly typed GlobalItem object by using the specified identity with either case-sensitive or case-insensitive search.

public T GetItem<T>(
	string identity,
	bool ignoreCase
)
where T : GlobalItem

Parameters

identity
Type: System.String

The identity of the item.

ignoreCase
Type: System.Boolean

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

Return Value

Type: T

The item that is specified by the identity.

Type Parameters

T

The type returned by the method.