Share via


SmtpNetworkElement.Password Proprietà

Definizione

Ottiene o imposta la password utente da utilizzare per connettersi a un server di posta SMTP.

public:
 property System::String ^ Password { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("password")]
public string Password { get; set; }
[<System.Configuration.ConfigurationProperty("password")>]
member this.Password : string with get, set
Public Property Password As String

Valore della proprietà

Stringa che rappresenta la password da utilizzare per connettersi a un server di posta SMTP.

Attributi

Commenti

L'impostazione DefaultCredentials ha la precedenza sull'impostazione UserName e Passwordsu . UserName e Password vengono usati solo se DefaultCredentials è impostato su false.

Si applica a

Vedi anche