Partager via


Méthode MasterKey.Create (String, String, String)

Creates a master key from the specified file and that has the specified encryption and decryption passwords.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Sub Create ( _
    path As String, _
    decryptionPassword As String, _
    encryptionPassword As String _
)
'Utilisation
Dim instance As MasterKey 
Dim path As String 
Dim decryptionPassword As String 
Dim encryptionPassword As String

instance.Create(path, decryptionPassword, _
    encryptionPassword)
public void Create(
    string path,
    string decryptionPassword,
    string encryptionPassword
)
public:
void Create(
    String^ path, 
    String^ decryptionPassword, 
    String^ encryptionPassword
)
member Create : 
        path:string * 
        decryptionPassword:string * 
        encryptionPassword:string -> unit
public function Create(
    path : String, 
    decryptionPassword : String, 
    encryptionPassword : String
)

Paramètres

  • path
    Type : System.String
    A String value that specifies the system path location of the file from which to load the master key.
  • decryptionPassword
    Type : System.String
    A String value that specifies the password with which to decrypt the master key.
  • encryptionPassword
    Type : System.String
    A String value that specifies the password with which to encrypt the master key.

Exemples

Appel de méthodes

Voir aussi

Référence

MasterKey Classe

Surcharge Create

Espace de noms Microsoft.SqlServer.Management.Smo

Autres ressources

Hiérarchie de chiffrement

CREATE MASTER KEY (Transact-SQL)