Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

EntityParameterCollection::Add Method (EntityParameter^)

 

Adds the specified EntityParameter object to the EntityParameterCollection.

Namespace:   System.Data.EntityClient
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public:
EntityParameter^ Add(
	EntityParameter^ value
)

Parameters

value
Type: System.Data.EntityClient::EntityParameter^

The EntityParameter to add to the collection.

Exception Condition
ArgumentException

The EntityParameter specified in the value parameter is already added to this or another EntityParameterCollection.

InvalidCastException

The parameter passed was not a EntityParameter.

ArgumentNullException

The value parameter is null.

.NET Framework
Available since 3.5
Return to top
Show:
© 2017 Microsoft