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
属性值
表示用于连接到 SMTP 邮件服务器的密码的字符串。A string that represents the password to use to connect to an SMTP mail server.
- 属性
注解
设置 DefaultCredentials 优先于设置 UserName 和 Password 。Setting DefaultCredentials takes precedence over setting UserName and Password. UserNamePassword仅当设置为时,才会使用和 DefaultCredentials false 。UserName and Password are used only if DefaultCredentials is set to false.