ObjectParameterCollection.Add Method (ObjectParameter)
Adds the specified ObjectParameter to the collection.
Assembly: EntityFramework (in EntityFramework.dll)
Parameters
- item
-
Type:
System.Data.Entity.Core.Objects.ObjectParameter
The parameter to add to the collection.
Implements
ICollection<T>.Add(T)Exception | Condition |
---|---|
ArgumentNullException | The parameter argument is null. |
ArgumentException | The parameter argument already exists in the collection. This behavior differs from that of most collections that allow duplicate entries. -or-Another parameter with the same name as the parameter argument already exists in the collection. Note that the lookup is case-insensitive. This behavior differs from that of most collections, and is more like that of a T:System.Collections.Generic.Dictionary . |
ArgumentOutOfRangeException | The type of the parameter is not valid. |