DimensionAttributeCollection.Insert Method (Int32, String, String)
SQL Server 2012
Creates and inserts a DimensionAttribute, with the specified name and identifier, into the collection at the specified index.
Namespace: Microsoft.AnalysisServices
Assembly: Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)
Parameters
- index
- Type: System.Int32
The zero-based index at which the new DimensionAttribute will be inserted.
- name
- Type: System.String
The name of the DimensionAttribute to be inserted.
- id
- Type: System.String
The identifier of the DimensionAttribute to be inserted.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | index is less than zero. -or- index is equal to or greater than [H:Microsoft.AnalysisServices.ModelComponentCollection.Count]. |