ProxyAccount.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.
示例
请参阅
参考
Microsoft.SqlServer.Management.Smo.Agent 命名空间