Share via


Login.DropCredential Method

Drops a login credential.

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

Syntax

'Declaration
Public Sub DropCredential ( _
    credentialName As String _
)
'Usage
Dim instance As Login
Dim credentialName As String

instance.DropCredential(credentialName)
public void DropCredential(
    string credentialName
)
public:
void DropCredential(
    String^ credentialName
)
member DropCredential : 
        credentialName:string -> unit 
public function DropCredential(
    credentialName : String
)

Parameters

Remarks

Not to be confused with the Credential class method Drop().