Export (0) Print
Expand All

ReportingService2010.GetExtensionSettings Method (String)

 

Applies To: SQL Server 2016 Preview

Returns a list of settings for a given extension.

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

<SoapHeaderAttribute("TrustedUserHeaderValue")>
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)>
<SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetExtensionSettings",
	RequestNamespace := "http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
	ResponseNamespace := "http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
	Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)>
Public Function GetExtensionSettings (
	Extension As String
) As ExtensionParameter()

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 DocumentLibraryand Report Server FileShare.

Return Value

Type: ReportService2010.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 Header Usage

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Native Mode Required Permissions

None

SharePoint Mode 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.

Legacy Code Example

Imports System
Imports System.IO
Imports System.Text
Imports System.Web.Services
Imports System.Web.Services.Protocols

Class Sample

    Public Shared Sub Main()

        Dim rs As New ReportingService2010()
        rs.Url = "http://<Server Name>" + _
            "/_vti_bin/ReportServer/ReportService2010.asmx"
        rs.Credentials = _
            System.Net.CredentialCache.DefaultCredentials

        Dim extensionParams As ExtensionParameter() = Nothing

        Try
            extensionParams = _
                rs.GetExtensionSettings("Report Server " + _
                    "DocumentLibrary")

            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

End Class
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft