UserNameSecurityTokenProvider(String, String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the UserNameSecurityTokenProvider class using the specified username and password.
public:
UserNameSecurityTokenProvider(System::String ^ userName, System::String ^ password);
public UserNameSecurityTokenProvider (string userName, string password);
new System.IdentityModel.Selectors.UserNameSecurityTokenProvider : string * string -> System.IdentityModel.Selectors.UserNameSecurityTokenProvider
Public Sub New (userName As String, password As String)
Parameters
- userName
- String
The username to get UserNameSecurityToken security token for.
- password
- String
The password of the user to get a UserNameSecurityToken security token for.
Remarks
The GetTokenCore method gets a token based on the specified username and password.
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.