ObjectQuery::Parameters Property
.NET Framework (current version)
Gets the parameter collection for this object query.
Assembly: System.Data.Entity (in System.Data.Entity.dll)
public: property ObjectParameterCollection^ Parameters { ObjectParameterCollection^ get(); }
Property Value
Type: System.Data.Objects::ObjectParameterCollection^The parameter collection for this ObjectQuery<T>.
Use the returned ObjectParameterCollection to specify parameters that are passed to the query. For more information, see Query Builder Methods.
This example is based on the AdventureWorks Sales Model. The example adds new parameters to the collection and then gets the parameter collection for this ObjectQuery<T>. Then it iterates through the ObjectParameterCollection and displays the name, type, and value of each parameter in the collection.
.NET Framework
Available since 3.5
Available since 3.5
Show: