Modifier

Partager via


UserNameSecurityToken Constructors

Definition

Initializes a new instance of the UserNameSecurityToken class.

Overloads

UserNameSecurityToken(String, String)

Initializes a new instance of the UserNameSecurityToken class using the specified user name and password.

UserNameSecurityToken(String, String, String)

Initializes a new instance of the UserNameSecurityToken class using the specified user name, password, and unique identifier.

UserNameSecurityToken(String, String)

Source:
UserNameSecurityToken.cs
Source:
UserNameSecurityToken.cs
Source:
UserNameSecurityToken.cs

Initializes a new instance of the UserNameSecurityToken class using the specified user name and password.

public:
 UserNameSecurityToken(System::String ^ userName, System::String ^ password);
public UserNameSecurityToken (string userName, string password);
new System.IdentityModel.Tokens.UserNameSecurityToken : string * string -> System.IdentityModel.Tokens.UserNameSecurityToken
Public Sub New (userName As String, password As String)

Parameters

userName
String

A user name. Sets the UserName property.

password
String

A password for the user name. Sets the Password property.

Exceptions

userName is null.

-or-

password is null.

Applies to

UserNameSecurityToken(String, String, String)

Source:
UserNameSecurityToken.cs
Source:
UserNameSecurityToken.cs
Source:
UserNameSecurityToken.cs

Initializes a new instance of the UserNameSecurityToken class using the specified user name, password, and unique identifier.

public:
 UserNameSecurityToken(System::String ^ userName, System::String ^ password, System::String ^ id);
public UserNameSecurityToken (string userName, string password, string id);
new System.IdentityModel.Tokens.UserNameSecurityToken : string * string * string -> System.IdentityModel.Tokens.UserNameSecurityToken
Public Sub New (userName As String, password As String, id As String)

Parameters

userName
String

A user name. Sets the UserName property.

password
String

A password for the user name. Sets the Password property.

id
String

A unique identifier of the security token. Sets the Id property.

Exceptions

userName is null.

-or-

password is null.

-or-

id is null.

Applies to