BackupEncryptionKey 方法 (WMI MSReportServer_ConfigurationSetting)

備份指定之報表伺服器執行個體的加密金鑰。此加密金鑰會以密碼加密的方式儲存。

語法

Public Sub BackupEncryptionKey(Password as String, _
    ByRef KeyFile() as Integer, ByRef Length as Int32, _
    ByRef HRESULT as Int32, ByRef ExtendedErrors() as String)

public void BackupEncryptionKey(string Password, out Byte[] KeyFile, 
    out Int32 Length, out Int32 HRESULT, out string[] ExtendedErrors);

參數

  • Password
    用來在傳回加密金鑰之前進行加密的字串。

  • KeyFile[]
    [out] 包含已加密之加密金鑰的陣列。

  • Length
    [out] 此方法所傳回之陣列的長度。

  • HRESULT
    [out] 指出呼叫成功或失敗的值。

  • ExtendedErrors[]
    [out] 包含呼叫所傳回之其他錯誤的字串陣列。

傳回值

傳回 HRESULT,指出方法呼叫成功或失敗。值為 0 表示方法呼叫成功。非零值則表示已發生錯誤。

需求

命名空間: root\Microsoft\SqlServer\ReportServer\RS_<EncodedInstanceName>\v10\Admin

平台: Windows Server 2003 Datacenter Edition;Windows Server 2003 Enterprise Edition;Windows Server 2003 Standard Edition;Windows Vista;Windows XP Professional Service Pack 2 (SP2) 或 Service Pack 1 (SP1);或 Windows 2000 (所有版本)