DimensionPermissionCollection.IndexOf Method (DimensionPermission)

Gets the index of a specified DimensionPermission.

Namespace:  Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)

Syntax

'Declaration
Public Function IndexOf ( _
    item As DimensionPermission _
) As Integer
'Usage
Dim instance As DimensionPermissionCollection 
Dim item As DimensionPermission 
Dim returnValue As Integer 

returnValue = instance.IndexOf(item)
public int IndexOf(
    DimensionPermission item
)
public:
int IndexOf(
    DimensionPermission^ item
)
member IndexOf : 
        item:DimensionPermission -> int
public function IndexOf(
    item : DimensionPermission
) : int

Parameters

Return Value

Type: System.Int32
The zero-based index of the DimensionPermission if the object is found; otherwise, -1.

See Also

Reference

DimensionPermissionCollection Class

IndexOf Overload

Microsoft.AnalysisServices Namespace