RoleMemberCollection.IndexOf Method (RoleMember)
Applies To: SQL Server (starting with 2016)
Searches for the specified RoleMember and returns its zero-based index within the collection.
Namespace: Microsoft.AnalysisServices
Assembly: Microsoft.AnalysisServices.Core (in Microsoft.AnalysisServices.Core.dll)
Syntax
public int IndexOf(
RoleMember item
)
public:
int IndexOf(
RoleMember^ item
)
member IndexOf :
item:RoleMember -> int
Public Function IndexOf (
item As RoleMember
) As Integer
Parameters
item
Type: Microsoft.AnalysisServices.RoleMemberThe RoleMember to locate.
Return Value
Type: System.Int32
The zero-based index of the RoleMember in the collection, if found; otherwise, -1.
See Also
RoleMemberCollection Class
Microsoft.AnalysisServices Namespace
Return to top