ObjectParameterCollection.Add Method (ObjectParameter)

 

Adds the specified ObjectParameter to the collection.

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

public void Add(
	ObjectParameter item
)

Parameters

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

The parameter to add to the collection.

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.