Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Determines whether the specified user is a member of the specified role.
Namespace: Microsoft.SharePoint.Administration.Claims
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Overrides Function IsUserInRole ( _
username As String, _
roleName As String _
) As Boolean
'Usage
Dim instance As SPClaimsAuthRoleProvider
Dim username As String
Dim roleName As String
Dim returnValue As Boolean
returnValue = instance.IsUserInRole(username, _
roleName)
public override bool IsUserInRole(
string username,
string roleName
)
Parameters
username
Type: System.StringThe user name to search for in the role.
roleName
Type: System.StringThe role name to search for the user.
Return Value
Type: System.Boolean
true if the user is a member of the role.
Remarks
This override determines whether the user is a member of the role in the claims-based role provider that is not an SPClaimsAuthRoleProvider and is used by the current application.
See Also
Reference
SPClaimsAuthRoleProvider Class