Поделиться через


Метод MasterKey.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.

Пространство имен:  Microsoft.SqlServer.Management.Smo
Сборка:  Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)

Синтаксис

'Декларация
Public Sub Import ( _
    path As String, _
    decryptionPassword As String, _
    encryptionPassword As String, _
    forceRegeneration As Boolean _
)
'Применение
Dim instance As MasterKey 
Dim path As String 
Dim decryptionPassword As String 
Dim encryptionPassword As String 
Dim forceRegeneration As Boolean

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

Параметры

  • path
    Тип: System.String
    A String value that specifies the system path location of the file to save the master key to.
  • decryptionPassword
    Тип: System.String
    A String value that specifies the password with which to decrypt the master key.
  • encryptionPassword
    Тип: System.String
    A String value that specifies the password with which to encrypt the master key.
  • forceRegeneration
    Тип: System.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.

Примеры

Вызов методов

См. также

Справочник

MasterKey Класс

Перегрузка Import

Пространство имен Microsoft.SqlServer.Management.Smo

Другие ресурсы

Иерархия средств шифрования

CREATE MASTER KEY (Transact-SQL)