Condividi tramite


AlgorithmParameterCollection.Add Method

Definition

Overloads

Add(AlgorithmParameter)

Adds the specified AlgorithmParameter to the end of the collection.

Add(String, Object)

Creates a new AlgorithmParameter object using the name and value provided, adds it to the collection and returns the new AlgorithmParameter object created.

Add(AlgorithmParameter)

Adds the specified AlgorithmParameter to the end of the collection.

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

Parameters

item
AlgorithmParameter

The AlgorithmParameter to be added.

Returns

The zero-based index at which the AlgorithmParameter has been added to the collection.

Exceptions

The specified item is a null reference (Nothing in Visual Basic).

The specified item's name is a null reference (Nothing in Visual Basic).

  • The specified item already esists in the collection.
  • The specified item belongs to another collection.
  • The collection already contains an item with the same name as the specified item.

Applies to

Add(String, Object)

Creates a new AlgorithmParameter object using the name and value provided, adds it to the collection and returns the new AlgorithmParameter object created.

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

Parameters

name
String

The Name for the new AlgorithmParameter object.

value
Object

The Value for the new AlgorithmParameter object.

Returns

The newly created AlgorithmParameter object.

Exceptions

The specified name is a null reference (Nothing in Visual Basic).

The collection already contains an item with the same name as the specified name.

Applies to