分享方式:


ConfigurationSetting 方法 - RemoveURL

移除針對報表伺服器所保留的 URL。 如果有多個需要移除的 URL,您就必須呼叫此 API 來逐一進行此操作。

語法

Public Sub RemoveURL(ByVal Application As String, _  
    ByVal UrlString As String, ByVal Lcid As Int32, _  
    ByRef [Error] As String, ByRef HRESULT As Int32)  
public void RemoveURL(string Application, string UrlString, int Lcid,   
    out string Error, out int HRESULT);  

參數

應用程式
要移除保留項目之應用程式的名稱。

URLString
保留項目的 URL。

lcid
要用於傳回之錯誤訊息的地區設定。

錯誤
[out] 發生之錯誤的描述。

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

傳回值

傳回 HRESULT ,指出方法呼叫成功或失敗。 值為 0 表示方法呼叫成功。錯誤碼則表示呼叫不成功。

備註

UrlString 不包含虛擬目錄名稱 - SetVirtualDirectory 方法 (WMI MSReportServer_ConfigurationSetting) 方法是針對該目的所提供。

呼叫 ReserveURL 方法之前,您必須針對 Application 參數的 VirtualDirectory 組態屬性提供一個值。 使用 SetVirtualDirectory 方法 (WMI MSReportServer_ConfigurationSetting) 方法來設定 VirtualDirectory 屬性。

如果透過 Reporting Services 佈建了 TLS/SSL 憑證,但是其他 URL 不需要它,系統就會將該憑證移除。

這個方法會導致所有非組態應用程式網域在此操作期間進行硬式回收並停止。 在此操作完成之後,應用程式網域就會重新啟動。

需求

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

MSReportServer_ConfigurationSetting 成員