DatabaseEncryptionKey.Reencrypt Method
Re-encrypts a database encryption key.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Sub Reencrypt ( _
encryptorName As String, _
encryptionType As DatabaseEncryptionType _
)
'Usage
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
)
Parameters
- encryptorName
Type: System.String
String
- encryptionType
Type: Microsoft.SqlServer.Management.Smo.DatabaseEncryptionType
DatabaseEncryptionType