IDbCommand.CreateParameter 方法

Creates a new instance of an IDataParameter object.

命名空间:  Microsoft.ReportingServices.DataProcessing
程序集:   Microsoft.ReportingServices.Interfaces(在 Microsoft.ReportingServices.Interfaces.dll 中)
  Microsoft.ReportingServices.SharePoint.UI.WebParts(在 Microsoft.ReportingServices.SharePoint.UI.WebParts.dll 中)

语法

声明
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

返回值

类型:Microsoft.ReportingServices.DataProcessing.IDataParameter
An IDataParameter object.

注释

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.

请参阅

参考

IDbCommand 接口

Microsoft.ReportingServices.DataProcessing 命名空间