Método RoleMemberCollection.IndexOf

Searches for the specified RoleMember and returns its zero-based index within the collection.

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

Sintaxe

'Declaração
Public Function IndexOf ( _
    item As RoleMember _
) As Integer
'Uso
Dim instance As RoleMemberCollection 
Dim item As RoleMember 
Dim returnValue As Integer 

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

Parâmetros

Valor de retorno

Tipo: System.Int32
The zero-based index of the RoleMember in the collection, if found; otherwise, -1.

Consulte também

Referência

RoleMemberCollection Classe

Namespace Microsoft.AnalysisServices