Expand Minimize
This topic has not yet been rated - Rate this topic

ReportingService2005.ListExtensions Method

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

Namespace:  ReportService2005
Assembly:  ReportService2005 (in ReportService2005.dll)
[SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/ListExtensions", RequestNamespace = "http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", 
	ResponseNamespace = "http://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
)

Parameters

ExtensionType
Type: ReportService2005.ExtensionTypeEnum
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

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

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:

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);
      }
   }
}
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.