ObjectParameterCollection.Contains Method

 

Checks for the existence of a specified ObjectParameter in the collection by reference.

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

NameDescription
System_CAPS_pubmethodContains(ObjectParameter)

Checks for the existence of a specified ObjectParameter in the collection by reference.

System_CAPS_pubmethodContains(String)

Determines whether an ObjectParameter with the specified name is in the collection.


ObjectParameterCollection.Contains Method (ObjectParameter)

Checks for the existence of a specified ObjectParameter in the collection by reference.

public bool Contains(
	ObjectParameter item
)

Parameters

item
Type: System.Data.Entity.Core.Objects.ObjectParameter

The ObjectParameter to find in the collection.

Return Value

Type: System.Boolean

Returns true if the parameter object was found in the collection; otherwise, false.

Exception Condition
ArgumentNullException

The parameter argument is null.


ObjectParameterCollection.Contains Method (String)

Determines whether an ObjectParameter with the specified name is in the collection.

public bool Contains(
	string name
)

Parameters

name
Type: System.String

The name of the parameter to look for in the collection. This name should not include the "@" parameter marker that is used in the Entity SQL statements, only the actual name.

Return Value

Type: System.Boolean

Returns true if a parameter with the specified name was found in the collection; otherwise, false.

Exception Condition
ArgumentNullException

The name parameter is null.