Compartir a través de


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

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

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
Public Sub Create ( _
    path As String, _
    decryptionPassword As String, _
    encryptionPassword As String _
)
'Uso
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
)

Parámetros

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

Ejemplos

Llamar a métodos

Vea también

Referencia

MasterKey Clase

Sobrecarga de Create

Espacio de nombres Microsoft.SqlServer.Management.Smo

Otros recursos

Jerarquía de cifrado

CREATE MASTER KEY (Transact-SQL)