ReadOnlyMetadataCollection<T>.Contains Method

 

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

NameDescription
System_CAPS_pubmethodContains(T)

(Inherited from ReadOnlyCollection<T>.)

System_CAPS_pubmethodContains(String)

Determines whether the collection contains an item with the specified identity.


ReadOnlyMetadataCollection<T>.Contains Method (String)

Determines whether the collection contains an item with the specified identity.

public virtual bool Contains(
	string identity
)

Parameters

identity
Type: System.String

The identity of the item.

Return Value

Type: System.Boolean

true if the collection contains the item to be searched for; otherwise, false. The default is false.