IDbCommand.CreateParameter Method

Definition

Creates a new instance of an IDataParameter object.

public:
 Microsoft::ReportingServices::DataProcessing::IDataParameter ^ CreateParameter();
public Microsoft.ReportingServices.DataProcessing.IDataParameter CreateParameter ();
abstract member CreateParameter : unit -> Microsoft.ReportingServices.DataProcessing.IDataParameter
Public Function CreateParameter () As IDataParameter

Returns

An IDataParameter object.

Remarks

When inheriting from IDbCommand, a SQL Server Reporting Services data provider implements a strongly typed version of CreateParameter.

The CreateParameter method is called by the report server to set the name and value for each query parameter in the command text. The parameter is then added to the Parameters collection prior to the ExecuteReader method being called.

Applies to