PerspectiveAttributeCollection.Insert Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Insert(Int32, PerspectiveAttribute) |
Inserts the specified PerspectiveAttribute to the collection at the specified index. |
Insert(Int32, String) |
Creates a new PerspectiveAttribute object using the specified AttributeID, inserts it to the collection at the specified index and returns the new PerspectiveAttribute created. |
Insert(Int32, PerspectiveAttribute)
Inserts the specified PerspectiveAttribute to the collection at the specified index.
public void Insert (int index, Microsoft.AnalysisServices.PerspectiveAttribute item);
override this.Insert : int * Microsoft.AnalysisServices.PerspectiveAttribute -> unit
Public Sub Insert (index As Integer, item As PerspectiveAttribute)
Parameters
- index
- Int32
The zero-based index at which the PerspectiveAttribute is inserted.
- item
- PerspectiveAttribute
The PerspectiveAttribute 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 AttributeID of the specified PerspectiveAttribute is not valid in the collection.
- The compatibility-level of the specified PerspectiveAttribute is not valid in the collection.
Applies to
Insert(Int32, String)
Creates a new PerspectiveAttribute object using the specified AttributeID, inserts it to the collection at the specified index and returns the new PerspectiveAttribute created.
public Microsoft.AnalysisServices.PerspectiveAttribute Insert (int index, string attributeId);
override this.Insert : int * string -> Microsoft.AnalysisServices.PerspectiveAttribute
Public Function Insert (index As Integer, attributeId As String) As PerspectiveAttribute
Parameters
- index
- Int32
The zero-based index at which the PerspectiveAttribute is inserted.
- attributeId
- String
The AttributeID for the new PerspectiveAttribute object.
Returns
The newly created PerspectiveAttribute 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.