Freigeben über


AddCredential-Methode

Adds a login credential.

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

Syntax

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

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

Parameter