This document is archived and information here might be outdated.  Recommended version.


IRoleStore.GetUsersWithinRole Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Server)  

IRoleStore.GetUsersWithinRole Method

Returns users within a role that match a filter upto a maxCount number.

[Visual Basic .NET]
Public Function GetUsersWithinRole ( _
    ByVal rolename As String, _
    ByVal filter As String, _
    ByVal maxCount As Integer, _
    ByRef usernames As String[]& _
) As Boolean
[C#]
public bool GetUsersWithinRole (
    string rolename,
    string filter,
    int maxCount,
    ref String[]& usernames
);
[C++]
HRESULT GetUsersWithinRole(
  BSTR rolename,
  BSTR filter,
  long maxCount,
  usernames* usernames,
  VARIANT_BOOL* hasMore
);
[C++]

Parameters rolename [in] rolename is a parameter of type BSTR filter [in] filter is a parameter of type BSTR maxCount [in] maxCount is a parameter of type long usernames [out] usernames is a parameter of type hasMore [out, retval] hasMore is a parameter of type VARIANT_BOOL

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

IRoleStore Interface