This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Server > ESRI.ArcGIS.Server > Interfaces > IR > IRoleStore Interface > IRoleStore.GetRolesForUser Method (ArcObjects .NET 10.4 SDK) |
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