Share via


MailServer.SetAccount Method (String, String)

Sets the mail server account.

Namespace:  Microsoft.SqlServer.Management.Smo.Mail
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Sub SetAccount ( _
    userName As String, _
    password As String _
)
'Usage
Dim instance As MailServer 
Dim userName As String 
Dim password As String

instance.SetAccount(userName, password)
public void SetAccount(
    string userName,
    string password
)
public:
void SetAccount(
    String^ userName, 
    String^ password
)
member SetAccount : 
        userName:string * 
        password:string -> unit
public function SetAccount(
    userName : String, 
    password : String
)

Parameters

  • userName
    Type: System.String
    A string value that contains the username.

See Also

Reference

MailServer Class

SetAccount Overload

Microsoft.SqlServer.Management.Smo.Mail Namespace