Condividi tramite


AggregationInstanceCollection.Insert Method

Definition

Overloads

Insert(Int32, String, String)

Creates a new AggregationInstance object using the specified name and identifier, inserts it to the collection at the specified index and returns the new AggregationInstance created.

Insert(Int32, String)

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

Insert(Int32, AggregationInstance)

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

Insert(Int32)

Creates a new AggregationInstance object using a generated unique Name and identifier, inserts it to the collection at the specified index and returns the new AggregationInstance created.

Insert(Int32, String, String)

Creates a new AggregationInstance object using the specified name and identifier, inserts it to the collection at the specified index and returns the new AggregationInstance created.

public Microsoft.AnalysisServices.AggregationInstance Insert (int index, string name, string id);
override this.Insert : int * string * string -> Microsoft.AnalysisServices.AggregationInstance
Public Function Insert (index As Integer, name As String, id As String) As AggregationInstance

Parameters

index
Int32

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

name
String

The Name for the new AggregationInstance object.

id
String

The identifier for the new AggregationInstance object.

Returns

The newly created AggregationInstance 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 not valid in the collection.
  • The specified identifier is not valid in the collection.

Applies to

Insert(Int32, String)

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

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

Parameters

index
Int32

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

name
String

The Name for the new AggregationInstance object. It must be unique within the collection.

Returns

The newly created AggregationInstance 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 not valid in the collection.

Remarks

The identifier for the AggregationInstance is generated based on the specified Name.

Applies to

Insert(Int32, AggregationInstance)

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

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

Parameters

index
Int32

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

item
AggregationInstance

The AggregationInstance 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 already esists in the collection.
  • The identifier of the specified AggregationInstance is not valid in the collection.
  • The name of the specified AggregationInstance is not valid in the collection.
  • The compatibility-level of the specified AggregationInstance is not valid in the collection.

Applies to

Insert(Int32)

Creates a new AggregationInstance object using a generated unique Name and identifier, inserts it to the collection at the specified index and returns the new AggregationInstance created.

public Microsoft.AnalysisServices.AggregationInstance Insert (int index);
override this.Insert : int -> Microsoft.AnalysisServices.AggregationInstance
Public Function Insert (index As Integer) As AggregationInstance

Parameters

index
Int32

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

Returns

The newly created AggregationInstance object.

Exceptions

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

Applies to