Metoda ReportExecutionService.ListRenderingExtensions
Zwraca listę rozszerzeń renderowania.
Przestrzeń nazw: ReportExecution2005
Zestaw: ReportExecution2005 (w ReportExecution2005.dll)
Składnia
'Deklaracja
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/ListRenderingExtensions", 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)> _
Public Function ListRenderingExtensions As Extension()
'Użycie
Dim instance As ReportExecutionService
Dim returnValue As Extension()
returnValue = instance.ListRenderingExtensions()
[SoapHeaderAttribute("TrustedUserHeaderValue")]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/ListRenderingExtensions", 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)]
public Extension[] ListRenderingExtensions()
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/ListRenderingExtensions", 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)]
public:
array<Extension^>^ ListRenderingExtensions()
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/ListRenderingExtensions", 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)>]
member ListRenderingExtensions : unit -> Extension[]
public function ListRenderingExtensions() : Extension[]
Wartość zwracana
Typ: array<ReportExecution2005.Extension[]
Tablica Extension obiektów, które zawiera dostępne renderowania rozszerzenia.
Uwagi
W poniższej tabela przedstawiono informacje nagłówka i uprawnienia na tej operacji.
Użycie nagłówek protokołu SOAP |
(Ruch wychodzący)ServerInfoHeaderValue |
Tryb macierzysty wymagane uprawnienia |
Brak |
Tryb programu SharePoint wymagane uprawnienia |
Brak |
Przykłady
Aby skompilować poniższy przykład kodu, należy odwołać Reporting Services WSDL oraz przywozu niektórych obszarów nazw.Aby uzyskać więcej informacji, zobacz temat Compiling and Running Code Examples.Poniższy przykład kodu pobiera listę wszystkich rozszerzeń renderowania:
Imports System
Imports System.Web.Services.Protocols
Imports myNamespace.myWebserviceReference
Class Sample
Public Shared Sub Main()
Dim rs As New ReportExecutionService()
rs.Credentials = System.Net.CredentialCache.DefaultCredentials
' Set the base Web service URL of the source server
rs.Url = "https://servername/reportserver/ReportExecution2005.asmx"
Dim extensions As Extension() = Nothing
' Retrieve a list of all supported data processing extensions.
Try
extensions = rs.ListRenderingExtensions()
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;
using myNamespace.myWebserviceReference;
class Sample
{
public static void Main()
{
ReportingService rs = new ReportExecutionService();
// Set the base Web service URL of the source server
rs.Url = "https://servername/reportserver/ReportExecution2005.asmx";
rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
Extension[] extensions = null;
// Retrieve a list of all renderingextensions.
try
{
extensions = rs.ListRenderingExtensions();
if (extensions != null)
{
foreach (Extension extension in extensions)
{
Console.WriteLine("Name: {0}", extension.Name);
}
}
}
catch (SoapException e)
{
Console.WriteLine(e.Detail.OuterXml);
}
}
}