MailServer.UserName プロパティ

参照先のメール サーバーに関連付けられたユーザー名を取得または設定します。

名前空間:  Microsoft.SqlServer.Management.Smo.Mail
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property UserName As String 
    Get 
    Set
'使用
Dim instance As MailServer 
Dim value As String 

value = instance.UserName

instance.UserName = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string UserName { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property String^ UserName {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member UserName : string with get, set
function get UserName () : String 
function set UserName (value : String)

プロパティ値

型: System.String
参照先のメール サーバーに関連付けられたユーザーの名前を示す String 値です。

使用例

データベース メールの使用

関連項目

参照

MailServer クラス

Microsoft.SqlServer.Management.Smo.Mail 名前空間

その他の技術情報

データベース メール