다음을 통해 공유


SymmetricKey.OpenWithCertificate 메서드 (String, String)

Opens the symmetric key with a certificate.

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

구문

‘선언
Public Sub OpenWithCertificate ( _
    certificateName As String, _
    privateKeyPassword As String _
)
‘사용 방법
Dim instance As SymmetricKey 
Dim certificateName As String 
Dim privateKeyPassword As String

instance.OpenWithCertificate(certificateName, _
    privateKeyPassword)
public void OpenWithCertificate(
    string certificateName,
    string privateKeyPassword
)
public:
void OpenWithCertificate(
    String^ certificateName, 
    String^ privateKeyPassword
)
member OpenWithCertificate : 
        certificateName:string * 
        privateKeyPassword:string -> unit
public function OpenWithCertificate(
    certificateName : String, 
    privateKeyPassword : String
)

매개 변수

  • privateKeyPassword
    유형: System.String
    A String value that specifies the password that was used to encrypt the private key of the certificate.

암호화 사용

참고 항목

참조

SymmetricKey 클래스

OpenWithCertificate 오버로드

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

관련 자료

암호화 계층

CREATE SYMMETRIC KEY(Transact-SQL)

OPEN SYMMETRIC KEY(Transact-SQL)