語言

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 Password且僅在 DefaultCredentials 被設定為 false時才會使用 。

適用於

另請參閱