Share via


DataSourcePermissionCollection.IndexOf Method (DataSourcePermission)

Gets the index of a specified DataSourcePermission.

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

Syntax

'Declaration
Public Function IndexOf ( _
    item As DataSourcePermission _
) As Integer
'Usage
Dim instance As DataSourcePermissionCollection
Dim item As DataSourcePermission
Dim returnValue As Integer

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

Parameters

Return Value

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