IDbCommand.CreateParameter Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.