다음을 통해 공유


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.