CubeDimensionPermissionCollection.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, CubeDimensionPermission) |
Inserts the specified CubeDimensionPermission to the collection at the specified index. |
Insert(Int32, String) |
Creates a new CubeDimensionPermission object using the specified CubeDimensionID, inserts it to the collection at the specified index and returns the new CubeDimensionPermission created. |
Insert(Int32, CubeDimensionPermission)
Inserts the specified CubeDimensionPermission to the collection at the specified index.
public void Insert (int index, Microsoft.AnalysisServices.CubeDimensionPermission item);
override this.Insert : int * Microsoft.AnalysisServices.CubeDimensionPermission -> unit
Public Sub Insert (index As Integer, item As CubeDimensionPermission)
Parameters
- index
- Int32
The zero-based index at which the CubeDimensionPermission is inserted.
The CubeDimensionPermission 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 CubeDimensionID of the specified CubeDimensionPermission is not valid in the collection.
- The compatibility-level of the specified CubeDimensionPermission is not valid in the collection.
Applies to
Insert(Int32, String)
Creates a new CubeDimensionPermission object using the specified CubeDimensionID, inserts it to the collection at the specified index and returns the new CubeDimensionPermission created.
public Microsoft.AnalysisServices.CubeDimensionPermission Insert (int index, string cubeDimensionId);
override this.Insert : int * string -> Microsoft.AnalysisServices.CubeDimensionPermission
Public Function Insert (index As Integer, cubeDimensionId As String) As CubeDimensionPermission
Parameters
- index
- Int32
The zero-based index at which the CubeDimensionPermission is inserted.
- cubeDimensionId
- String
The CubeDimensionID for the new CubeDimensionPermission object.
Returns
The newly created CubeDimensionPermission object.
Exceptions
The specified index is not a valid value (less than zero or bigger then the total number of elements).
The specified CubeDimensionID is not valid in the collection.