Export 方法

Saves the service master key to the specified system path location with the specified password.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Sub Export ( _
    path As String, _
    password As String _
)
用法
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
)

参数

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

示例

使用加密