ArcObjects Library Reference (Server)  

IRoleStore.GetRolesForUser Method

Returns roles assigned to a user that match a filter upto a maxCount number.

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

Parameters

UserName [in]   UserName is a parameter of type BSTR filter [in]   filter is a parameter of type BSTR maxCount [in]   maxCount is a parameter of type long rolenames [out]   rolenames 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