SmtpNetworkElement.UserName プロパティ

定義

SMTP メール サーバーに接続するユーザー名を取得または設定します。

public:
 property System::String ^ UserName { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("userName")]
public string UserName { get; set; }
[<System.Configuration.ConfigurationProperty("userName")>]
member this.UserName : string with get, set
Public Property UserName As String

プロパティ値

SMTP メール サーバーに接続するユーザー名を表す文字列。

属性

注釈

DefaultCredentialsの設定は、UserNamePasswordの設定よりも優先されます。 UserName Passwordは、DefaultCredentialsfalseに設定されている場合にのみ使用されます。

適用対象

こちらもご覧ください