다음을 통해 공유


SetReportServerURLs Method (WMI MSReportManager_ConfigurationSetting Class)

Sets the URLs used by report manager to communicate with the report server.

Syntax

Public Sub SetReportServerURLs(ReportServerURL as String,_
    ReportServerVirtualDirectory as String, _
    ReportServerExternalURL as String, ByRef HRESULT as Int32)
public void SetReportServerURLs(string ReportServerURL, 
    string ReportServerVirtualDirectory, 
    string ReportServerExternalURL, out Int32 HRESULT);

Parameters

  • ReportServerUrl
    Specifies the URL to use when communicating to the report server using SOAP. When a value is specified, this is the value used to communicate with report server.
  • ReportServerVirtualDirectory
    Specifies the name of the virtual directory on which the report server is exposed.

    When a value is specified and a value for ReportServerUrl is not specified, Report Manager constructs URLs for SOAP calls using this value.

  • ReportServerExternalUrl
    Specifies the URL to prepend to the request URL to allow use of the HTML Viewer in Internet scenarios.
  • HRESULT
    [out] Value indicating whether the call succeeded or failed.

Return Value

Returns an HRESULT indicating success or failure of the method call. A value of 0 indicates that the method call was successful; an error code indicates the call was not successful.

주의

When calling the method, the ReportServerUrl and/or the ReportServerVirtualDirectory parameter must be specified. Failure to specify one of these parameters results in an exception being thrown.

To clear a value, supply an empty string for that value.

Requirements

Namespace:root\Microsoft\SqlServer\ReportServer\v9

Platform: Windows Server 2003 Datacenter Edition, Windows Server 2003 Enterprise Edition, Windows Server 2003 Standard Edition, Windows Vista, Windows XP Professional SP2(서비스 팩 2) 또는 SP1(서비스 팩 1), 또는 Windows 2000(모든 버전)

참고 항목

참조

MSReportManager_ConfigurationSetting Members

도움말 및 정보

SQL Server 2005 지원 받기