Метод AddServerRole
Adds a Microsoft SQL Server server role to the proxy account.
Пространство имен: Microsoft.SqlServer.Management.Smo.Agent
Сборка: Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)
Синтаксис
'Декларация
Public Sub AddServerRole ( _
serverRoleName As String _
)
'Применение
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
)
Параметры
- serverRoleName
Тип System. . :: . .String
A String value that specifies the SQL Server server role that is associated with the proxy account.