A string array containing the names of all the roles that the specified user is in.
The Roles.GetRolesForUser(string) method calls the RoleProvider.GetRolesForUser(string) method of the default role provider to retrieve from the data source the roles that the user is in. Only the roles for the application that is specified in the Roles.ApplicationName property are retrieved.
If username is equal to the current logged-on user and Roles.CacheRolesInCookie is true, the results of the Roles.GetRolesForUser(string) method may be returned from the role cache rather than the specified Roles.Provider.