Partager via


Méthode MasterKey.Export

Saves the database master key to the specified system path location by using the specified password.

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

Syntaxe

'Déclaration
Public Sub Export ( _
    path As String, _
    password As String _
)
'Utilisation
Dim instance As MasterKey 
Dim path As String 
Dim password As String

instance.Export(path, password)
public void Export(
    string path,
    string password
)
public:
void Export(
    String^ path, 
    String^ password
)
member Export : 
        path:string * 
        password:string -> unit
public function Export(
    path : String, 
    password : String
)

Paramètres

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

Exemples

Appel de méthodes

Voir aussi

Référence

MasterKey Classe

Espace de noms Microsoft.SqlServer.Management.Smo

Autres ressources

Hiérarchie de chiffrement

CREATE MASTER KEY (Transact-SQL)