SPClaimsAuthRoleProvider.GetRolesForUser Method
Gets a list of role names that include the specified user in the application represented by the ApplicationName property.
Namespace: Microsoft.SharePoint.Administration.Claims
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Overrides Function GetRolesForUser ( _
username As String _
) As String()
'Usage
Dim instance As SPClaimsAuthRoleProvider
Dim username As String
Dim returnValue As String()
returnValue = instance.GetRolesForUser(username)
public override string[] GetRolesForUser(
string username
)
Parameters
username
Type: System.StringThe name of the user to find in the roles.
Return Value
Type: []
The list of role names to search for the specified user.
Remarks
The role names are based on the claims for the identity of the specified user.
See Also
Reference
SPClaimsAuthRoleProvider Class