Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IRoleProvider.IsUserInRole Method

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

[Visual Basic]
Public Sub IsUserInRole( _
   ByVal username As String, _
   ByVal roleName As String _
)
[C#]
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.

See Also

IRoleProvider Interface | Spring.Web.Providers Namespace