共用方式為


UserName 屬性

Gets or sets the user name associated with the referenced mail server.

命名空間:  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
A String value that specifies the name of the user associated with the referenced mail server.