SetAccount 方法 (String, String)
Sets the mail server account.
命名空間: Microsoft.SqlServer.Management.Smo.Mail
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Sub SetAccount ( _
userName As String, _
password As String _
)
'用途
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
)
參數
- userName
型別:System. . :: . .String
A string value that contains the username.
- password
型別:System. . :: . .String
A SecureString that contains the password.