ObjectParameterCollection.Contains Method
Checks for the existence of a specified ObjectParameter in the collection by reference.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | Contains(ObjectParameter) | Checks for the existence of a specified ObjectParameter in the collection by reference. |
![]() | Contains(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.
Parameters
- item
-
Type:
System.Data.Entity.Core.Objects.ObjectParameter
The ObjectParameter to find in the collection.
Return Value
Type: System.BooleanReturns true if the parameter object was found in the collection; otherwise, false.
Implements
ICollection<T>.Contains(T)Exception | Condition |
---|---|
ArgumentNullException | The parameter argument is null. |
ObjectParameterCollection.Contains Method (String)
Determines whether an ObjectParameter with the specified name is in the collection.
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.BooleanReturns true if a parameter with the specified name was found in the collection; otherwise, false.
Exception | Condition |
---|---|
ArgumentNullException | The name parameter is null. |