UsernameToken Constructor (String, String, PasswordOption)
Initializes a new instance of the UsernameToken class with the specified user name, password, and password sending option.
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 passwordOption As PasswordOption
Dim usernameToken1 As New UsernameToken(username, password, passwordOption)
Syntax
'Declaration
Public Sub New( _
ByVal username As String, _
ByVal password As String, _
ByVal passwordOption As PasswordOption _
)
public UsernameToken(
string username,
string password,
PasswordOption passwordOption
);
public:
UsernameToken(
String^ username,
String^ password,
PasswordOption passwordOption
);
public UsernameToken(
System.String username,
System.String password,
PasswordOption passwordOption
);
public function UsernameToken(
username : String,
password : String,
passwordOption : PasswordOption
);
Parameters
- username
The user name associated with the security token.
- password
The password for the user name associated with the security token.
- passwordOption
One of the PasswordOption values specifying how the password is sent in SOAP messages.
Exceptions
Exception type | Condition |
---|---|
ArgumentNullException | username is null . -or- username is an empty string (""). -or- password is null . -or- password is an empty string (""). |
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
UsernameToken Class
UsernameToken Members
Microsoft.Web.Services3.Security.Tokens Namespace