SmtpNetworkElement.Password Propiedad

Definición

Obtiene o establece la contraseña del usuario que debe utilizarse para conectarse a un servidor de correo 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

Valor de propiedad

Una cadena que representa la contraseña que debe utilizarse para conectarse a un servidor de correo SMTP.

Atributos

Comentarios

El valor DefaultCredentials tiene prioridad sobre la configuración UserName y Password. UserName y Password solo se usan si DefaultCredentials se establece en false.

Se aplica a

Consulte también