AggregationDesignAttributeCollection.Insert Method

Definition

Overloads

Insert(Int32, AggregationDesignAttribute)

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

Insert(Int32, String)

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

Insert(Int32, AggregationDesignAttribute)

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

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

Parameters

index
Int32

The zero-based index at which the AggregationDesignAttribute is 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 AttributeID of the specified AggregationDesignAttribute is not valid in the collection.
  • The compatibility-level of the specified AggregationDesignAttribute is not valid in the collection.

Applies to

Insert(Int32, String)

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

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

Parameters

index
Int32

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

attributeId
String

The AttributeID for the new AggregationDesignAttribute object.

Returns

The newly created AggregationDesignAttribute object.

Exceptions

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

The specified AttributeID is not valid in the collection.

Applies to