GetReportServerUrls 方法 (WMI MSReportServer_Instance)

返回可用于访问报表服务器和报表管理器的 URL 列表。

语法

Public Sub GetReportServerUrls (ByRef ApplicationName() As String, ByRef URLs()_
    As String, ByRef Length As Int32, ByRef HRESULT As Int32)
public void GetReportServerUrls(out string[] applicationName, 
    out string[] URLs, out int length, out int HRESULT);

参数

  • ApplicationName[]
    一个包含安装的应用程序的数组。值为 ReportServerWebService 或 ReportManager。

  • URLs[]
    一个包含已成功注册的 URL 的数组。

  • Length
    一个包含返回数组的长度的整数值。

  • HRESULT
    一个指示成功或错误代码的值。

注释

WMI 管理对象公开的方法可通过 InvokeMethod 函数调用。有关详细信息,请参阅 Microsoft .NET Framework WMI 文档中的“Executing Methods on Management Objects”(对管理对象执行方法)。

要求

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

平台: 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(所有版本)