다음을 통해 공유


AddCredential 메서드

Adds a login credential.

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
Public Sub AddCredential ( _
    credentialName As String _
)
‘사용 방법
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
)

매개 변수