共用方式為


AlgorithmParameterCollection.Add 方法

定義

多載

Add(AlgorithmParameter)

將指定的 AlgorithmParameter 新增至集合的結尾。

Add(String, Object)

使用提供的名稱和值,建立新的 AlgorithmParameter 物件,然後將其新增至集合,並傳回新建立的 AlgorithmParameter 物件。

Add(AlgorithmParameter)

將指定的 AlgorithmParameter 新增至集合的結尾。

public int Add(Microsoft.AnalysisServices.AlgorithmParameter item);
member this.Add : Microsoft.AnalysisServices.AlgorithmParameter -> int
Public Function Add (item As AlgorithmParameter) As Integer

參數

item
AlgorithmParameter

要新增的 AlgorithmParameter

傳回

以零起始的索引,其為 AlgorithmParameter 新增至集合的位置。

例外狀況

指定的項目為 Null 參考 (Visual Basic 中的 Nothing)。

指定項目的名稱為 Null 參考 (Visual Basic 中的 Nothing)。

  • 指定的項目已存在於集合中。
  • 指定的專案屬於另一個集合。
  • 集合已經包含與指定專案同名的專案。

適用於

Add(String, Object)

使用提供的名稱和值,建立新的 AlgorithmParameter 物件,然後將其新增至集合,並傳回新建立的 AlgorithmParameter 物件。

public Microsoft.AnalysisServices.AlgorithmParameter Add(string name, object value);
member this.Add : string * obj -> Microsoft.AnalysisServices.AlgorithmParameter
Public Function Add (name As String, value As Object) As AlgorithmParameter

參數

name
String

AlgorithmParameter 物件的名稱。

value
Object

AlgorithmParameter 物件的值。

傳回

新建立的 AlgorithmParameter 物件。

例外狀況

指定的名稱為 Null 參考 (Visual Basic 中的 Nothing)。

集合已包含與指定名稱同名的項目。

適用於