共用方式為


AddLogin 方法

Adds a Microsoft Windows login account to the proxy account.

命名空間:  Microsoft.SqlServer.Management.Smo.Agent
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Sub AddLogin ( _
    loginName As String _
)
'用途
Dim instance As ProxyAccount
Dim loginName As String

instance.AddLogin(loginName)
public void AddLogin(
    string loginName
)
public:
void AddLogin(
    String^ loginName
)
member AddLogin : 
        loginName:string -> unit 
public function AddLogin(
    loginName : String
)

參數

  • loginName
    型別:System. . :: . .String
    A String value that specifies the Windows login account that is associated with the proxy account.