Share via


LdapRoleProvider.IsUserInRole method

This member is reserved for internal use and is not intended to be used directly from your code.

Namespace:  Microsoft.Office.Server.Security
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

Syntax

'Declaration
Public Overrides Function IsUserInRole ( _
    username As String, _
    roleName As String _
) As Boolean
'Usage
Dim instance As LdapRoleProvider
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

Return value

Type: System.Boolean

See also

Reference

LdapRoleProvider class

LdapRoleProvider members

Microsoft.Office.Server.Security namespace