Метод ListExtensions
Возвращает список модулей, настроенных для данного типа модулей.
Пространство имен: ReportService2005
Сборка: ReportService2005 (в ReportService2005.dll)
Синтаксис
'Декларация
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/ListExtensions", RequestNamespace := "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", _
ResponseNamespace := "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
Public Function ListExtensions ( _
ExtensionType As ExtensionTypeEnum _
) As Extension()
'Применение
Dim instance As ReportingService2005
Dim ExtensionType As ExtensionTypeEnum
Dim returnValue As Extension()
returnValue = instance.ListExtensions(ExtensionType)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/ListExtensions", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
public Extension[] ListExtensions(
ExtensionTypeEnum ExtensionType
)
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/ListExtensions", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
public:
array<Extension^>^ ListExtensions(
ExtensionTypeEnum ExtensionType
)
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/ListExtensions", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
member ListExtensions :
ExtensionType:ExtensionTypeEnum -> Extension[]
public function ListExtensions(
ExtensionType : ExtensionTypeEnum
) : Extension[]
Параметры
- ExtensionType
Тип: ReportService2005. . :: . .ExtensionTypeEnum
Тип модулей, для которого выводятся настроенные модули. Возможные значения: Доставка, Подготовка, Данные и Все. Дополнительные сведения см. в разделе ExtensionTypeEnum.
Возвращаемое значение
Тип: array<ReportService2005. . :: . .Extension> [] () [] []
Возвращает массив объектов Extension, содержащий доступные модули.
Замечания
The table below shows header and permissions information on this operation.
SOAP Headers |
(Out) ServerInfoHeaderValue |
Required Permissions |
None |
Примеры
To compile the following code example, you must reference the Reporting Services WSDL and import certain namespaces. For more information, see Compiling and Running Code Examples. The following code example retrieves a list of all supported data processing extensions that are currently installed on the report server:
Imports System
Imports System.Web.Services.Protocols
Class Sample
Public Shared Sub Main()
Dim rs As New ReportingService2005()
rs.Credentials = System.Net.CredentialCache.DefaultCredentials
' Set the base Web service URL of the source server
rs.Url = "https://servername/reportserver/reportservice.asmx"
Dim extensions As Extension() = Nothing
' Retrieve a list of all supported data processing extensions.
Try
extensions = rs.ListExtensions(ExtensionTypeEnum.Data)
If Not (extensions Is Nothing) Then
Dim extension As Extension
For Each extension In extensions
Console.WriteLine("Name: {0}", extension.Name)
Next extension
End If
Catch e As SoapException
Console.WriteLine(e.Detail.OuterXml)
End Try
End Sub 'Main
End Class 'Sample
using System;
using System.Web.Services.Protocols;
class Sample
{
public static void Main()
{
ReportingService2005 rs = new ReportingService2005();
rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
Extension[] extensions = null;
// Retrieve a list of all supported data processing extensions.
try
{
extensions = rs.ListExtensions(ExtensionTypeEnum.Data);
if (extensions != null)
{
foreach (Extension extension in extensions)
{
Console.WriteLine("Name: {0}", extension.Name);
}
}
}
catch (SoapException e)
{
Console.WriteLine(e.Detail.OuterXml);
}
}
}