MailServer.SetAccount Método (String, SecureString)
Sets the mail server account.
Espacio de nombres: Microsoft.SqlServer.Management.Smo.Mail
Ensamblado: Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Sintaxis
'Declaración
Public Sub SetAccount ( _
userName As String, _
password As SecureString _
)
'Uso
Dim instance As MailServer
Dim userName As String
Dim password As SecureString
instance.SetAccount(userName, password)
public void SetAccount(
string userName,
SecureString password
)
public:
void SetAccount(
String^ userName,
SecureString^ password
)
member SetAccount :
userName:string *
password:SecureString -> unit
public function SetAccount(
userName : String,
password : SecureString
)
Parámetros
- userName
Tipo: System.String
A string value that contains the username.
- password
Tipo: System.Security.SecureString
A SecureString that contains the password.