Share via


ProxyAccount.RemoveLogin Method

Removes a Microsoft Windows login account from the referenced proxy account.

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

Syntax

'Declaration
Public Sub RemoveLogin ( _
    loginName As String _
)
'Usage
Dim instance As ProxyAccount
Dim loginName As String

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

Parameters

  • loginName
    Type: System.String
    A String value that specifies the Windows login account to be removed.