Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

RoleProviderAdapter.IsUserInRole Method

Gets a value indicating whether the specified user is in the specified role for the configured applicationName.

[Visual Basic]
Public Overrides Sub IsUserInRole( _
   ByVal username As String, _
   ByVal roleName As String _
) _
    Implements IRoleProvider.IsUserInRole
[C#]
public override bool IsUserInRole(
   string username,
   string roleName
);

Parameters

username
The user name to search for.
roleName
The role to search in.

Return Value

true if the specified user is in the specified role for the configured applicationName; otherwise, false.

Implements

IRoleProvider.IsUserInRole

See Also

RoleProviderAdapter Class | Spring.Web.Providers Namespace