ListExtensions Method
Collapse the table of content
Expand the table of content

ListExtensions Method

SQL Server 2000

ReportingService.ListExtensions Method

Returns a list of extensions that are configured for a given extension type.

Public Function ListExtensions( _
   ByVal ExtensionType As [Namespace].ExtensionTypeEnum _
) As String
   Member of [Namespace].ReportingService

public string ListExtensions(
   [Namespace].ExtensionTypeEnum ExtensionType
   Member of [Namespace].ReportingService
The extension type for which to list the configured extensions. Available values are Delivery, Render, Data, or All. For more information, see ExtensionTypeEnum.
Return Value

Returns an array of Extension[] objects that contains the available extensions.


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 ReportingService()
      rs.Credentials = System.Net.CredentialCache.DefaultCredentials
      ' Set the base Web service URL of the source server
      rs.Url = "http://servername/reportserver/reportservice.asmx"
      Dim extensions As Extension() = Nothing
      ' Retrieve a list of all supported data processing extensions. 
         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
      End Try
   End Sub 'Main
End Class 'Sample

using System;
using System.Web.Services.Protocols;

class Sample
   public static void Main()
      ReportingService rs = new ReportingService();
      rs.Credentials = System.Net.CredentialCache.DefaultCredentials;

      Extension[] extensions = null;

      // Retrieve a list of all supported data processing extensions. 
         extensions = rs.ListExtensions(ExtensionTypeEnum.Data);

         if (extensions != null)
            foreach (Extension extension in extensions)
               Console.WriteLine("Name: {0}", extension.Name);

      catch (SoapException e)
See Also

ReportingService Class

Reporting Services Web Service Library

© 2015 Microsoft