ConfigurationSetting 方法 – BackupEncryptionKey

备份指定报表服务器实例的加密密钥。 加密密钥会在使用密码加密后存储。

语法

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);  

参数

密码
用于在加密密钥返回之前对其进行加密的字符串。

KeyFile[]
[out] 包含已加密的加密密钥的数组。

长度
[out] 该方法返回的数组长度。

HRESULT
[out] 指示调用是成功还是失败的值。

ExtendedErrors[]
[out] 一个字符串数组,包含此调用返回的其他错误。

返回值

返回 HRESULT ,指示方法调用是成功还是失败。 值 0 指示方法调用已成功。 非零值指示发生了错误。

要求

命名空间:root\Microsoft\SqlServer\ReportServer\<InstanceName>\v13\Admin

MSReportServer_ConfigurationSetting 成员