Share via


ReportParameterCollection.Insert Method

Definition

Overloads

Insert(Int32, ReportParameter)

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

Insert(Int32, String, String)

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

Insert(Int32, ReportParameter)

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

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

Parameters

index
Int32

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

item
ReportParameter

The ReportParameter 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, String)

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

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

Parameters

index
Int32

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

name
String

The Name for the new ReportParameter object.

value
String

The Value for the new ReportParameter object.

Returns

The newly created ReportParameter 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