다음을 통해 공유


Certificate.AddPrivateKey 메서드 (String, String, String)

Adds a private key to the certificate with the specified decryption and encryption passwords.

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

구문

‘선언
Public Sub AddPrivateKey ( _
    privateKeyPath As String, _
    decryptionPassword As String, _
    encryptionPassword As String _
)
‘사용 방법
Dim instance As Certificate 
Dim privateKeyPath As String 
Dim decryptionPassword As String 
Dim encryptionPassword As String

instance.AddPrivateKey(privateKeyPath, _
    decryptionPassword, encryptionPassword)
public void AddPrivateKey(
    string privateKeyPath,
    string decryptionPassword,
    string encryptionPassword
)
public:
void AddPrivateKey(
    String^ privateKeyPath, 
    String^ decryptionPassword, 
    String^ encryptionPassword
)
member AddPrivateKey : 
        privateKeyPath:string * 
        decryptionPassword:string * 
        encryptionPassword:string -> unit
public function AddPrivateKey(
    privateKeyPath : String, 
    decryptionPassword : String, 
    encryptionPassword : String
)

매개 변수

  • privateKeyPath
    유형: System.String
    A String value that specifies the system path to the private key file.
  • decryptionPassword
    유형: System.String
    A String value that specifies the decryption password for the private key.
  • encryptionPassword
    유형: System.String
    A String value that specifies the encryption password for the private key.

암호화 사용

참고 항목

참조

Certificate 클래스

AddPrivateKey 오버로드

Microsoft.SqlServer.Management.Smo 네임스페이스

관련 자료

암호화 계층

CREATE CERTIFICATE(Transact-SQL)