Share via


ObjectParameterCollection.Add(ObjectParameter) Method

Definition

Adds the specified ObjectParameter to the collection.

public void Add (System.Data.Entity.Core.Objects.ObjectParameter item);
abstract member Add : System.Data.Entity.Core.Objects.ObjectParameter -> unit
override this.Add : System.Data.Entity.Core.Objects.ObjectParameter -> unit
Public Sub Add (item As ObjectParameter)

Parameters

item
ObjectParameter

The parameter to add to the collection.

Implements

Exceptions

The parameter argument is null.

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 System.Collections.Generic.Dictionary .

The type of the parameter is not valid.

Applies to