MasterKey.Import MasterKey.Import MasterKey.Import Method

Definition

Loads the database master key from the file located at the specified system path by using the specified password to decrypt the master key.

Overloads

Import(String, String, String) Import(String, String, String) Import(String, String, String)

Loads the database master key from the file that is located at the specified system path by using the specified passwords to decrypt and encrypt the master key.

Import(String, String, String, Boolean) Import(String, String, String, Boolean) Import(String, String, String, Boolean)

Loads the database master key from the file that is located at the specified system path by using the specified passwords to decrypt and encrypt the master key, and with the option to force regeneration.

Import(String, String, String) Import(String, String, String) Import(String, String, String)

Loads the database master key from the file that is located at the specified system path by using the specified passwords to decrypt and encrypt the master key.

public:
 void Import(System::String ^ path, System::String ^ decryptionPassword, System::String ^ encryptionPassword);
public void Import (string path, string decryptionPassword, string encryptionPassword);
Public Sub Import (path As String, decryptionPassword As String, encryptionPassword As String)
Parameters
path
String String String

A String value that specifies the system path location of the file to save the master key to.

decryptionPassword
String String String

A String value that specifies the password with which to decrypt the master key.

encryptionPassword
String String String

A String value that specifies the password with which to encrypt the master key.

Examples

Calling Methods

Import(String, String, String, Boolean) Import(String, String, String, Boolean) Import(String, String, String, Boolean)

Loads the database master key from the file that is located at the specified system path by using the specified passwords to decrypt and encrypt the master key, and with the option to force regeneration.

public:
 void Import(System::String ^ path, System::String ^ decryptionPassword, System::String ^ encryptionPassword, bool forceRegeneration);
public void Import (string path, string decryptionPassword, string encryptionPassword, bool forceRegeneration);
Public Sub Import (path As String, decryptionPassword As String, encryptionPassword As String, forceRegeneration As Boolean)
Parameters
path
String String String

A String value that specifies the system path location of the file to save the master key to.

decryptionPassword
String String String

A String value that specifies the password with which to decrypt the master key.

encryptionPassword
String String String

A String value that specifies the password with which to encrypt the master key.

forceRegeneration
Boolean Boolean Boolean

A Boolean value that specifies whether to drop the items that cannot be successfully regenerated by using the old database master key password.

If True, regeneration of the master key is forced, and all items that cannot be regenerated are dropped. Otherwise, False.

Examples

Calling Methods

Applies to