ReportingService2006.GetExtensionSettings Method (String)

 

Returns a list of settings for a given extension.

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

public ExtensionParameter[] GetExtensionSettings(
	string Extension
)

Parameters

Extension
Type: System.String

The name of the extension as it appears in the report server configuration file. Valid values are Report Server Email, Report Server DocumentLibrary and Report Server FileShare.

Return Value

Type: ReportService2006.ExtensionParameter[]

An array of ExtensionParameter objects that represent the list of known settings for a given extension.

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

SOAP Headers

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Required Permissions

None

If the extension does not support any extension parameters, an empty list is returned.

System_CAPS_noteNote

Currently, the GetExtensionSettings method supports delivery extensions. Other extensions are not yet supported by this method.

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;

        ExtensionParameter[] extensionParams = null;

        try
        {
            extensionParams = 
                rs.GetExtensionSettings(
                    "Report Server DocumentLibrary");

            Console.WriteLine("Settings retrieved.");

            if (extensionParams != null)
            {
                foreach (ExtensionParameter extensionParam 
                    in extensionParams)
                {
                    Console.WriteLine("Value: {0}", 
                        extensionParam.Value);
                    Console.WriteLine("Name: {0}", 
                        extensionParam.Name);
                    Console.WriteLine("ReadOnly: {0}", 
                        extensionParam.ReadOnly);
                    Console.WriteLine("Required: {0}", 
                        extensionParam.Required);
                }
            }
        }

        catch (SoapException e)
        {
            Console.WriteLine(e.Detail.InnerXml.ToString());
        }
    }
}
Return to top
Show: