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.SecurityAssembly: 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 |
Return Value
Type:
BooleanTrue if the user with such username exists, false otherwise.
See Also