Compartilhar via


Método Reencrypt

Re-encrypts a database encryption key.

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

Sintaxe

'Declaração
Public Sub Reencrypt ( _
    encryptorName As String, _
    encryptionType As DatabaseEncryptionType _
)
'Uso
Dim instance As DatabaseEncryptionKey
Dim encryptorName As String
Dim encryptionType As DatabaseEncryptionType

instance.Reencrypt(encryptorName, encryptionType)
public void Reencrypt(
    string encryptorName,
    DatabaseEncryptionType encryptionType
)
public:
void Reencrypt(
    String^ encryptorName, 
    DatabaseEncryptionType encryptionType
)
member Reencrypt : 
        encryptorName:string * 
        encryptionType:DatabaseEncryptionType -> unit 
public function Reencrypt(
    encryptorName : String, 
    encryptionType : DatabaseEncryptionType
)