UsernameTokenManager.LogonUser Method
Creates a System.Security.Principal.WindowsPrincipal object using the specified username and password.
Namespace: Microsoft.Web.Services3.Security.Tokens
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)
Usage
'Usage
Dim username As String
Dim password As String
Dim returnValue As WindowsPrincipal
returnValue = UsernameTokenManager.LogonUser(username, password)
Syntax
'Declaration
Public Shared Function LogonUser( _
ByVal username As String, _
ByVal password As String _
) As WindowsPrincipal
public static WindowsPrincipal LogonUser(
string username,
string password
);
public:
static WindowsPrincipal^ LogonUser(
String^ username,
String^ password
);
public static WindowsPrincipal LogonUser(
System.String username,
System.String password
);
public static function LogonUser(
username : String,
password : String
) : WindowsPrincipal;
Parameters
- username
The user name
- password
The user password.
Return Value
A System.Security.Principal.WindowsPrincipal object.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server
Target Platforms
See Also
Reference
UsernameTokenManager Class
UsernameTokenManager Members
Microsoft.Web.Services3.Security.Tokens Namespace