Partager via


Méthode ServiceMasterKey.Export

Saves the service master key to the specified system path location with 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 ServiceMasterKey 
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 service master key.
  • password
    Type : System.String
    A String value that specifies the password with which to encrypt and decrypt the service master key.

Exemples

Utilisation du chiffrement

Voir aussi

Référence

ServiceMasterKey Classe

Espace de noms Microsoft.SqlServer.Management.Smo

Autres ressources

Hiérarchie de chiffrement

ALTER SERVICE MASTER KEY (Transact-SQL)