Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Opens the symmetric key with a certificate.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Sub OpenWithCertificate ( _
certificateName As String, _
privateKeyPassword As String _
)
'Usage
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
)
Parameters
- certificateName
Type: System.String
A String value that specifies the certificate.
- privateKeyPassword
Type: System.String
A String value that specifies the password that was used to encrypt the private key of the certificate.
Examples
See Also
Reference
Microsoft.SqlServer.Management.Smo Namespace