Compartir a través de


AddMsdbRole Método

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

Espacio de nombres:  Microsoft.SqlServer.Management.Smo.Agent
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
Public Sub AddMsdbRole ( _
    msdbRoleName As String _
)
'Uso
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
)

Parámetros

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