Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetExtensionSettings Method
Collapse the table of content
Expand the table of content

GetExtensionSettings Method

SQL Server 2000

ReportingService.GetExtensionSettings Method

Returns a list of settings for a given extension.

Public Function GetExtensionSettings( _
   ByVal Extension As String _
) As [Namespace].ExtensionParameter()
   Member of [Namespace].ReportingService

public [Namespace].ExtensionParameter[] GetExtensionSettings(
   string Extension
   Member of [Namespace].ReportingService
The name of the extension as it appears in the report server configuration file. Valid values are Report Server Email and Report Server FileShare.
Return Value

An array of ExtensionParameter[] objects that represents the list of known settings for a given extension.


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

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


To compile this 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 information about the settings of the Report Server e-mail delivery extension:

Imports System
Imports System.Web.Services.Protocols

Class Sample
   Public Shared Sub Main()
      Dim rs As New ReportingService()
      rs.Credentials = System.Net.CredentialCache.DefaultCredentials
      Dim extensionParams As ExtensionParameter() = Nothing
         extensionParams = rs.GetExtensionSettings("Report Server Email")
         Console.WriteLine("Settings retrieved.")
         If Not (extensionParams Is Nothing) Then
            Dim extensionParam As ExtensionParameter
            For Each 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)
            Next extensionParam
         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;

      ExtensionParameter[] extensionParams = null;
         extensionParams = rs.GetExtensionSettings("Report Server Email");

         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)
See Also

ReportingService Class

Reporting Services Web Service Library

© 2015 Microsoft