共用方式為


ConfigurationSetting 方法 - DeleteEncryptionKey

從報表伺服器資料庫中刪除加密金鑰。

語法

Public Sub DeleteEncryptionKeys(ByVal InstallationID As String, _  
    ByRef HRESULT As Int32, ByRef ExtendedErrors() As String)  
public void DeleteEncryptionKeys(string InstallationID, out Int32 HRESULT,   
    out string[] ExtendedErrors);  

參數

InstallationID
位於報表伺服器資料庫之索引鍵資料表中的報表伺服器的安裝識別碼。

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

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

傳回值

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

備註

DeleteEncryptionKey 方法會針對具有報表伺服器資料庫中安全資訊之存取權的任何報表伺服器,從索引鍵資料表中刪除項目。 如果指定的 InstallationID 參數沒有對應至資料庫中的安裝識別碼,此方法就會傳回錯誤。

需求

Namespace: root\Microsoft\SqlServer\ReportServer\<InstanceName>\v13\Admin

MSReportServer_ConfigurationSetting 成員