Partager via


CellPermissionCollection.Insert Method

Definition

Overloads

Insert(Int32, CellPermission)

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

Insert(Int32, CellPermissionAccess)

Creates a new CellPermission object using the specified access information, inserts it to the collection at the specified index and returns the new CellPermission created.

Insert(Int32, CellPermission)

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

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

Parameters

index
Int32

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

item
CellPermission

The CellPermission 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 access information of the specified CellPermission is not valid in the collection.
  • The compatibility-level of the specified CellPermission is not valid in the collection.

Applies to

Insert(Int32, CellPermissionAccess)

Creates a new CellPermission object using the specified access information, inserts it to the collection at the specified index and returns the new CellPermission created.

public Microsoft.AnalysisServices.CellPermission Insert (int index, Microsoft.AnalysisServices.CellPermissionAccess access);
override this.Insert : int * Microsoft.AnalysisServices.CellPermissionAccess -> Microsoft.AnalysisServices.CellPermission
Public Function Insert (index As Integer, access As CellPermissionAccess) As CellPermission

Parameters

index
Int32

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

access
CellPermissionAccess

The access information for the new CellPermission object.

Returns

The newly created CellPermission object.

Exceptions

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

The specified access information is not valid in the collection.

Applies to