Поделиться через


Метод GetReportServerConfigInfo

Возвращает сведения о подключенном экземпляре сервера отчетов или обо всех экземплярах сервера отчетов в масштабном развертывании.

Пространство имен:  ReportService2010
Сборка:  ReportService2010 (в ReportService2010.dll)

Синтаксис

'Декларация
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetReportServerConfigInfo", RequestNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",  _
    ResponseNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function GetReportServerConfigInfo ( _
    ScaleOut As Boolean _
) As String
'Применение
Dim instance As ReportingService2010
Dim ScaleOut As Boolean
Dim returnValue As String

returnValue = instance.GetReportServerConfigInfo(ScaleOut)
[SoapHeaderAttribute("TrustedUserHeaderValue")]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetReportServerConfigInfo", RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public string GetReportServerConfigInfo(
    bool ScaleOut
)
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetReportServerConfigInfo", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
public:
String^ GetReportServerConfigInfo(
    bool ScaleOut
)
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetReportServerConfigInfo", RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
member GetReportServerConfigInfo : 
        ScaleOut:bool -> string 
public function GetReportServerConfigInfo(
    ScaleOut : boolean
) : String

Параметры

  • ScaleOut
    Тип: System. . :: . .Boolean
    Значение типа boolean, указывающее, возвращаются ли все экземпляры сервера отчетов, перечисленные в списке на странице Масштабное развертывание в диспетчере конфигурации служб Reporting Services.

Возвращаемое значение

Тип: System. . :: . .String
Объект типа string, содержащий набор XML-элементов <ServerConfigInfoItem>.

Замечания

The table below shows header and permissions information on this operation.

SOAP Header Usage

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Native Mode Required Permissions

The user must be a member of the BUILTIN\Administrators group

SharePoint Mode Required Permissions

The user must be a member of the BUILTIN\Administrators group

The <ServerConfigInfoItem> XML element contains the following elements:

Element

Description

InstanceName

Gets or sets the name of the report server instance.

MachineName

Gets or sets the name of the machine that hosts the report server instance.

ReportServerURLItem

Gets or sets the URL of the report server instance.

ServerAccountName

Gets or sets the service account name that administers the report server instance.

Access to this method is only available to Windows users who belong to the local administrators group.

If the ScaleOut parameter is set to false, this method returns only one <ServerConfigInfoItem> element for the connected report server instance.