Compartilhar via


CellPermissionCollection.IndexOf Method

Definition

Overloads

IndexOf(CellPermission)

Searches for the specified CellPermission and returns the zero-based index of it in the collection.

IndexOf(CellPermissionAccess)

Searches for a CellPermission with the specified access information and returns the zero-based index of it in the collection.

IndexOf(CellPermission)

Searches for the specified CellPermission and returns the zero-based index of it in the collection.

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

Parameters

item
CellPermission

The CellPermission to locate in the collection.

Returns

The zero-based index of the CellPermission in the collection, if found; otherwise, -1.

Applies to

IndexOf(CellPermissionAccess)

Searches for a CellPermission with the specified access information and returns the zero-based index of it in the collection.

public int IndexOf (Microsoft.AnalysisServices.CellPermissionAccess access);
override this.IndexOf : Microsoft.AnalysisServices.CellPermissionAccess -> int
Public Function IndexOf (access As CellPermissionAccess) As Integer

Parameters

access
CellPermissionAccess

The access information of the CellPermission to locate in the collection.

Returns

The zero-based index of the CellPermission in the collection, if found; otherwise, -1.

Applies to