Share via


RoleMemberCollection.IndexOf(RoleMember) Method

Definition

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

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

Parameters

item
RoleMember

The RoleMember to locate.

Returns

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

Applies to