SmtpNetworkElement.Password 属性

定义

获取或设置用于连接到 SMTP 邮件服务器的用户密码。Gets or sets the user password to use to connect to an SMTP mail server.

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

属性值

String

表示用于连接到 SMTP 邮件服务器的密码的字符串。A string that represents the password to use to connect to an SMTP mail server.

属性

注解

设置 DefaultCredentials 优先于设置 UserNamePasswordSetting DefaultCredentials takes precedence over setting UserName and Password. UserNamePassword仅当设置为时,才会使用和 DefaultCredentials falseUserName and Password are used only if DefaultCredentials is set to false.

适用于

另请参阅