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

IRoleStore.GetRolesForUser Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Server > ESRI.ArcGIS.Server > Interfaces > IR > IRoleStore Interface > IRoleStore.GetRolesForUser Method
ArcGIS Developer Help

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
public bool GetRolesForUser (
    string UserName,
    string filter,
    int maxCount,
    ref String[]& rolenames
HRESULT GetRolesForUser(
  BSTR UserName,
  BSTR filter,
  long maxCount,
  SAFEARRAY(System.String)* rolenames
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 SAFEARRAY(BSTR)*

Product Availability

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

See Also

IRoleStore Interface