Gets password and roles for the user that is accessing the protected path. This implementation uses the ASP.NET membership infrastructure to validate the user.

Namespace: MonoSoftware.Web.Security
Assembly: MonoSoftware.Web (in MonoSoftware.Web.dll) Version: 1.0.40.661 (1.0.40.661)

Syntax

C#
protected virtual bool GetPasswordAndRoles(
	string username,
	out string password,
	out string[] roles
)
Visual Basic
Protected Overridable Function GetPasswordAndRoles ( 
	username As String,
	<OutAttribute> ByRef password As String,
	<OutAttribute> ByRef roles As String()
) As Boolean
Visual C++
protected:
virtual bool GetPasswordAndRoles(
	String^ username, 
	[OutAttribute] String^% password, 
	[OutAttribute] array<String^>^% roles
)
F#
abstract GetPasswordAndRoles : 
        username : string * 
        password : string byref * 
        roles : string[] byref -> bool 
override GetPasswordAndRoles : 
        username : string * 
        password : string byref * 
        roles : string[] byref -> bool 

Parameters

username
Type: System..::..String
User name.
password
Type: System..::..String%
User password.
roles
Type: array<System..::..String>[]()[][]%
Roles for the current user, if the user exists.

Return Value

Type: Boolean
True if the user with such username exists, false otherwise.

See Also