共用方式為


AlgorithmParameterCollection.Insert Method

Definition

Overloads

Insert(Int32, AlgorithmParameter)

Inserts the specified AlgorithmParameter to the collection at the specified index.

Insert(Int32, String, Object)

Creates a new AlgorithmParameter object using the name and value provided, inserts it to the collection at the specified index, and returns the new AlgorithmParameter object created.

Insert(Int32, AlgorithmParameter)

Inserts the specified AlgorithmParameter to the collection at the specified index.

public void Insert (int index, Microsoft.AnalysisServices.AlgorithmParameter item);
member this.Insert : int * Microsoft.AnalysisServices.AlgorithmParameter -> unit
Public Sub Insert (index As Integer, item As AlgorithmParameter)

Parameters

index
Int32

The zero-based index at which the AlgorithmParameter is inserted.

item
AlgorithmParameter

The AlgorithmParameter to be inserted.

Exceptions

The specified index is not a valid value (less than zero or bigger then the total number of elements).

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

Insert(Int32, String, Object)

Creates a new AlgorithmParameter object using the name and value provided, inserts it to the collection at the specified index, and returns the new AlgorithmParameter object created.

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

Parameters

index
Int32

The zero-based index at which the AlgorithmParameter is inserted.

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 index is not a valid value (less than zero or bigger then the total number of elements).

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