SmtpNetworkElement.UserName プロパティ
定義
SMTP メール サーバーへの接続のユーザー名を取得または設定します。Gets or sets the user name to connect to an SMTP mail server.
public:
property System::String ^ UserName { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("userName", DefaultValue=Mono.Cecil.CustomAttributeArgument)]
[System.Configuration.ConfigurationProperty("userName")]
public string UserName { get; set; }
member this.UserName : string with get, set
Public Property UserName As String
プロパティ値
SMTP メール サーバーへの接続のユーザー名を表す文字列。A string that represents the user name to connect to an SMTP mail server.
- 属性
注釈
設定DefaultCredentialsは、 UserName およびPasswordの設定よりも優先されます。Setting DefaultCredentials takes precedence over setting UserName and Password. UserNameおよびPasswordは、がにDefaultCredentials設定されfalse
ている場合にのみ使用されます。UserName and Password are used only if DefaultCredentials is set to false
.