Share via


ReportingService2005.GetExtensionSettings Method

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Returns a list of settings for a given extension.

Syntax

'Declaration
Public Function GetExtensionSettings ( _
    Extension As String _
) As ExtensionParameter()
public ExtensionParameter[] GetExtensionSettings (
    string Extension
)
public:
array<ExtensionParameter^>^ GetExtensionSettings (
    String^ Extension
)
public ExtensionParameter[] GetExtensionSettings (
    String Extension
)
public function GetExtensionSettings (
    Extension : String
) : ExtensionParameter[]

Parameters

  • Extension
    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.

Remarks

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.

Example

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 ReportingService2005()
      rs.Credentials = System.Net.CredentialCache.DefaultCredentials

      Dim extensionParams As ExtensionParameter() = Nothing

      Try
         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
         Console.WriteLine(e.Detail.InnerXml.ToString())
      End Try
   End Sub 'Main
End Class 'Sample
using System;
using System.Web.Services.Protocols;

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

      ExtensionParameter[] extensionParams = null;

      try
      {
         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)
      {
         Console.WriteLine(e.Detail.InnerXml.ToString());
      }
   }
}

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

See Also

Reference

ReportingService2005 Class
ReportingService2005 Members
Microsoft.WSSUX.ReportingServicesWebService.RSManagementService2005 Namespace