FormsAuthenticationUser(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 FormsAuthenticationUser class using the passed parameters.
public:
FormsAuthenticationUser(System::String ^ name, System::String ^ password);
public FormsAuthenticationUser (string name, string password);
new System.Web.Configuration.FormsAuthenticationUser : string * string -> System.Web.Configuration.FormsAuthenticationUser
Public Sub New (name As String, password As String)
Parameters
- name
- String
User's name.
- password
- String
User's password.
Examples
The following code example shows how to create a FormsAuthenticationUser object.
// Define the user name.
string name = "userName";
// Define the encrypted password.
string password =
"5BAA61E4C9B93F3F0682250B6CF8331B7EE68FD8";
// Create a new FormsAuthenticationUser object.
FormsAuthenticationUser newformsAuthenticationUser =
new FormsAuthenticationUser(name, password);
' Define the user name.
Dim name As String = "userName"
' Define the encrypted password.
Dim password As String = _
"5BAA61E4C9B93F3F0682250B6CF8331B7EE68FD8"
' Create a new FormsAuthenticationUser object.
Dim newformsAuthenticationUser _
As New FormsAuthenticationUser(name, password)
Remarks
This constructor creates a FormsAuthenticationUser object using the passed parameters.
Applies to
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla