SmtpNetworkElement.Password 屬性

定義

取得或設定使用者密碼,用於連接至 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

屬性值

字串,表示用於連接至 SMTP 電子郵件伺服器的密碼。

屬性

備註

設定DefaultCredentials優先設定 UserName 與設定 。 Password UserName只有在 設定為 falseDefaultCredentials,才會使用 和 Password

適用於

另請參閱