共用方式為


SetAccount 方法 (String, SecureString)

命名空間:  Microsoft.SqlServer.Management.Smo.Mail
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Sub SetAccount ( _
    userName As String, _
    password As SecureString _
)
'用途
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
)

參數