This document is archived and information here might be outdated. Recommended version. |
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,
SAFEARRAY(System.String)* rolenames
);
[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 SAFEARRAY(BSTR)*