AddMsdbRole 方法

Adds a Microsoft SQL Server database role to the proxy account.

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

语法

声明
Public Sub AddMsdbRole ( _
    msdbRoleName As String _
)
用法
Dim instance As ProxyAccount
Dim msdbRoleName As String

instance.AddMsdbRole(msdbRoleName)
public void AddMsdbRole(
    string msdbRoleName
)
public:
void AddMsdbRole(
    String^ msdbRoleName
)
member AddMsdbRole : 
        msdbRoleName:string -> unit 
public function AddMsdbRole(
    msdbRoleName : String
)

参数

  • msdbRoleName
    类型:System. . :: . .String
    A String value that specifies the SQL Server database role that is associated with the proxy account.