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.

示例

使用加密