共用方式為


Add 方法 (String, String)

Creates and adds a ReportParameter, with the specified name and value, to the end of the collection.

命名空間:  Microsoft.AnalysisServices
組件:  Microsoft.AnalysisServices (在 Microsoft.AnalysisServices.dll 中)

語法

'宣告
Public Function Add ( _
    name As String, _
    value As String _
) As ReportParameter
'用途
Dim instance As ReportParameterCollection
Dim name As String
Dim value As String
Dim returnValue As ReportParameter

returnValue = instance.Add(name, value)
public ReportParameter Add(
    string name,
    string value
)
public:
ReportParameter^ Add(
    String^ name, 
    String^ value
)
member Add : 
        name:string * 
        value:string -> ReportParameter 
public function Add(
    name : String, 
    value : String
) : ReportParameter

參數

傳回值

型別:Microsoft.AnalysisServices. . :: . .ReportParameter
The ReportParameter that was added to the collection.