Share via


CellPermissionCollection.Add Method

Definition

Overloads

Add(CellPermission)

Adds the specified CellPermission to the end of the collection.

Add(CellPermissionAccess)

Creates a new CellPermission object using the specified access information, adds it to the end of the collection and returns the new CellPermission created.

Add(CellPermission)

Adds the specified CellPermission to the end of the collection.

public int Add (Microsoft.AnalysisServices.CellPermission item);
override this.Add : Microsoft.AnalysisServices.CellPermission -> int
Public Function Add (item As CellPermission) As Integer

Parameters

item
CellPermission

The CellPermission to be added.

Returns

The zero-based index at which the CellPermission has been added to the collection.

Exceptions

  • 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 name 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

Add(CellPermissionAccess)

Creates a new CellPermission object using the specified access information, adds it to the end of the collection and returns the new CellPermission created.

public Microsoft.AnalysisServices.CellPermission Add (Microsoft.AnalysisServices.CellPermissionAccess access);
override this.Add : Microsoft.AnalysisServices.CellPermissionAccess -> Microsoft.AnalysisServices.CellPermission
Public Function Add (access As CellPermissionAccess) As CellPermission

Parameters

access
CellPermissionAccess

The access information for the new CellPermission object.

Returns

The newly created CellPermission object.

Exceptions

The specified access information is not valid in the collection.

Applies to