Compartilhar via


Método AddServerRole

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

Namespace:  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
Public Sub AddServerRole ( _
    serverRoleName As String _
)
'Uso
Dim instance As ProxyAccount
Dim serverRoleName As String

instance.AddServerRole(serverRoleName)
public void AddServerRole(
    string serverRoleName
)
public:
void AddServerRole(
    String^ serverRoleName
)
member AddServerRole : 
        serverRoleName:string -> unit 
public function AddServerRole(
    serverRoleName : String
)

Parâmetros

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