다음을 통해 공유


CreateParameter 메서드

Creates a new instance of an IDataParameter object.

네임스페이스:  Microsoft.ReportingServices.DataProcessing
어셈블리:  Microsoft.ReportingServices.Interfaces.dll의 Microsoft.ReportingServices.Interfaces

구문

‘선언
Function CreateParameter As IDataParameter
‘사용 방법
Dim instance As IDbCommand
Dim returnValue As IDataParameter

returnValue = instance.CreateParameter()
IDataParameter CreateParameter()
IDataParameter^ CreateParameter()
abstract CreateParameter : unit -> IDataParameter 
function CreateParameter() : IDataParameter

주의

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.