ObjectParameterCollection.Contains Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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. |
Contains(ObjectParameter)
Checks for the existence of a specified ObjectParameter in the collection by reference.
public bool Contains (System.Data.Entity.Core.Objects.ObjectParameter item);
abstract member Contains : System.Data.Entity.Core.Objects.ObjectParameter -> bool
override this.Contains : System.Data.Entity.Core.Objects.ObjectParameter -> bool
Public Function Contains (item As ObjectParameter) As Boolean
Parameters
- item
- ObjectParameter
The ObjectParameter to find in the collection.
Returns
Returns true if the parameter object was found in the collection; otherwise, false.
Implements
Exceptions
The parameter argument is null.
Applies to
Contains(String)
Determines whether an ObjectParameter with the specified name is in the collection.
public bool Contains (string name);
member this.Contains : string -> bool
Public Function Contains (name As String) As Boolean
Parameters
- name
- 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.
Returns
Returns true if a parameter with the specified name was found in the collection; otherwise, false.
Exceptions
The name parameter is null.
Applies to
Entity Framework