Roles.GetRolesForUser Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets a list of the roles that a user is in.

Namespace:   System.Web.Security
Assembly:  System.Web (in System.Web.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticGetRolesForUser()

Gets a list of the roles that the currently logged-on user is in.

System_CAPS_pubmethodSystem_CAPS_staticGetRolesForUser(String)

Gets a list of the roles that a user is in.

Return to top
Show: