FormsAuthenticationUser(String, String) Costruttore
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Inizializza una nuova istanza della classe FormsAuthenticationUser tramite i parametri passati.
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)
Parametri
- name
- String
Nome dell'utente.
- password
- String
Password dell'utente.
Esempio
Nell'esempio di codice seguente viene illustrato come creare un FormsAuthenticationUser oggetto .
// 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)
Commenti
Questo costruttore crea un FormsAuthenticationUser oggetto usando i parametri passati.
Si applica a
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per