مشاركة عبر


Certificate.ChangePrivateKeyPassword Method

Modifies the private key password that is used to secure the private key for the certificate.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Sub ChangePrivateKeyPassword ( _
    oldPassword As String, _
    newPassword As String _
)
'Usage
Dim instance As Certificate 
Dim oldPassword As String 
Dim newPassword As String

instance.ChangePrivateKeyPassword(oldPassword, _
    newPassword)
public void ChangePrivateKeyPassword(
    string oldPassword,
    string newPassword
)
public:
void ChangePrivateKeyPassword(
    String^ oldPassword, 
    String^ newPassword
)
member ChangePrivateKeyPassword : 
        oldPassword:string * 
        newPassword:string -> unit
public function ChangePrivateKeyPassword(
    oldPassword : String, 
    newPassword : String
)

Parameters

Examples

Using Encryption

See Also

Reference

Certificate Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Encryption Hierarchy

CREATE CERTIFICATE (Transact-SQL)