Delen via


MailServer.SetPassword Method (String)

Sets the password for the user account.

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

Syntax

'Declaration
Public Sub SetPassword ( _
    password As String _
)
'Usage
Dim instance As MailServer
Dim password As String

instance.SetPassword(password)
public void SetPassword(
    string password
)
public:
void SetPassword(
    String^ password
)
member SetPassword : 
        password:string -> unit 
public function SetPassword(
    password : String
)

Parameters

  • password
    Type: System.String
    A String value that specifies the password for the user account.