ServerProxyAccount.SetAccount 方法 (String, SecureString)

Sets the account name and secure password for the proxy account on the instance of SQL Server.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Sub SetAccount ( _
    windowsAccount As String, _
    password As SecureString _
)
用法
Dim instance As ServerProxyAccount 
Dim windowsAccount As String 
Dim password As SecureString

instance.SetAccount(windowsAccount, password)
public void SetAccount(
    string windowsAccount,
    SecureString password
)
public:
void SetAccount(
    String^ windowsAccount, 
    SecureString^ password
)
member SetAccount : 
        windowsAccount:string * 
        password:SecureString -> unit
public function SetAccount(
    windowsAccount : String, 
    password : SecureString
)

参数

示例

在 SQL Server 代理中计划自动管理任务

请参阅

参考

ServerProxyAccount 类

SetAccount 重载

Microsoft.SqlServer.Management.Smo 命名空间