Share via


ReportExecutionService.ListRenderingExtensions Method

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Returns a list of rendering extensions.

Syntax

'Declaration
Public Function ListRenderingExtensions As Extension()
public Extension[] ListRenderingExtensions ()
public:
array<Extension^>^ ListRenderingExtensions ()
public Extension[] ListRenderingExtensions ()
public function ListRenderingExtensions () : Extension[]

Return Value

An array of Extension objects that contains the available rendering extensions.

Example

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 rendering extensions:

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);
      }
   }
}

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

See Also

Reference

ReportExecutionService Class
ReportExecutionService Members
Microsoft.WSSUX.ReportingServicesWebService.RSExecutionService2005 Namespace