Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ReportingService2006.ListExtensions Method (ExtensionTypeEnum)

 

Applies To: SQL Server 2016 Preview

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

Namespace:   ReportService2006
Assembly:  ReportService2006 (in ReportService2006.dll)

public Extension[] ListExtensions(
	ExtensionTypeEnum ExtensionType
)

Parameters

ExtensionType
Type: ReportService2006.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: ReportService2006.Extension[]

The table below shows header and permissions information on this operation.

SOAP Headers

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Required Permissions

None

Returns an array of Extension objects that contain the available extensions.

Legacy Code Example

using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;

class Sample
{
    static void Main(string[] args)
    {
        ReportingService2006 rs = new ReportingService2006();
        rs.Url = "http://<Server Name>/_vti_bin/ReportServer/" +
            "ReportService2006.asmx";
        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);
        }
    }
}
Return to top
Show:
© 2015 Microsoft