共用方式為


DeviceInfoCollection.Add 方法 (String, String)

使用指定的名稱和值,將 DeviceInfo 物件加入至集合。

命名空間:  Microsoft.Reporting.WebForms
組件:  Microsoft.ReportViewer.WebForms (在 Microsoft.ReportViewer.WebForms.dll 中)

語法

'宣告
Public Sub Add ( _
    name As String, _
    value As String _
)
'用途
Dim instance As DeviceInfoCollection
Dim name As String
Dim value As String

instance.Add(name, value)
public void Add(
    string name,
    string value
)
public:
void Add(
    String^ name, 
    String^ value
)
member Add : 
        name:string * 
        value:string -> unit 
public function Add(
    name : String, 
    value : String
)

參數

請參閱

參考

DeviceInfoCollection 類別

Add 多載

Microsoft.Reporting.WebForms 命名空間