UsernameToken Constructor (String, String)
Initializes a new instance of the UsernameToken class with the specified user name 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 usernameToken1 As New UsernameToken(username, password)
Syntax
'Declaration
Public Sub New( _
ByVal username As String, _
ByVal password As String _
)
public UsernameToken(
string username,
string password
);
public:
UsernameToken(
String^ username,
String^ password
);
public UsernameToken(
System.String username,
System.String password
);
public function UsernameToken(
username : String,
password : String
);
Parameters
- username
The user name associated with the security token.
- password
The password for the user name associated with the security token.
Exceptions
Exception type | Condition |
---|---|
ArgumentNullException | username is null . -or- username is an empty string(""). -or- password is null . -or- password is an empty string(""). |
Remarks
The password is not sent with the SOAP message.
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