Share via


ReportingService2010.ListExtensions Yöntemi

Verilen uzantı türü için yapılandırılmış uzantılarının bir listesini verir.

Ad Alanı:  ReportService2010
Derleme:  ReportService2010 (ReportService2010 içinde.dll)

Sözdizimi

'Bildirim
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListExtensions", RequestNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",  _
    ResponseNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
Public Function ListExtensions ( _
    ExtensionType As String _
) As Extension()
'Kullanım
Dim instance As ReportingService2010
Dim ExtensionType As String
Dim returnValue As Extension()

returnValue = instance.ListExtensions(ExtensionType)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListExtensions", RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
[SoapHeaderAttribute("TrustedUserHeaderValue")]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
public Extension[] ListExtensions(
    string ExtensionType
)
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListExtensions", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
public:
array<Extension^>^ ListExtensions(
    String^ ExtensionType
)
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListExtensions", RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
member ListExtensions : 
        ExtensionType:string -> Extension[] 
public function ListExtensions(
    ExtensionType : String
) : Extension[]

Parametreler

  • ExtensionType
    Tür: System.String
    Uzantı türü için yapılandırılmış uzantılarını listelemek.
    Desteklenen uzantı türleri listesi için kullanmak ListExtensionTypes yöntem.

Dönüş Değeri

Tür: array<ReportService2010.Extension[]
Dizisi döndürür Extension nesneler içeren kullanılabilir uzantıları.

Açıklamalar

Aşağıdaki tablo üstbilgi ve izinler bu işlemi gösterir.

soap üstbilgisi kullanımı

(De)TrustedUserHeaderValue

(Giden)ServerInfoHeaderValue

Yerel mod gerekli izinleri

Hiçbiri

SharePoint modu gerekli izinleri

Hiçbiri

Örnekler

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)
    {
        ReportingService2010 rs = new ReportingService2010();
        rs.Url = "http://<Server Name>/_vti_bin/ReportServer/" +
            "ReportService2010.asmx";
        rs.Credentials = 
            System.Net.CredentialCache.DefaultCredentials;

        Extension[] extensions = null;

        // Retrieve a list of all supported 
        // data processing extensions. 
        try
        {
            extensions = rs.ListExtensions("Data");

            if (extensions != null)
            {
                foreach (Extension extension in extensions)
                {
                    Console.WriteLine("Name: {0}", extension.Name);
                }
            }
        }
        catch (SoapException e)
        {
            Console.WriteLine(e.Detail.OuterXml);
        }
    }
}
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 extensions As Extension() = Nothing

        ' Retrieve a list of all supported 
        ' data processing extensions. 
        Try
            extensions = rs.ListExtensions("Data")

            If Not (extensions Is Nothing) Then
                Dim extension As Extension
                For Each extension In extensions
                    Console.WriteLine("Name: {0}", extension.Name)
                Next extension
            End If

        Catch e As SoapException
            Console.WriteLine(e.Detail.OuterXml)
        End Try

    End Sub

End Class