Share via


MailServer.SetPassword Method (SecureString)

Sets the password.

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

Syntax

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

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

Parameters

See Also

Reference

MailServer Class

SetPassword Overload

Microsoft.SqlServer.Management.Smo.Mail Namespace