ReportingService2006.ListExtensions(ExtensionTypeEnum) ReportingService2006.ListExtensions(ExtensionTypeEnum) ReportingService2006.ListExtensions(ExtensionTypeEnum) Method

정의

지정된 확장 유형에 대해 구성된 확장 프로그램 목록을 반환합니다. Returns a list of extensions that are configured for a given extension type.

public:
 cli::array <ReportService2006::Extension ^> ^ ListExtensions(ReportService2006::ExtensionTypeEnum ExtensionType);
public ReportService2006.Extension[] ListExtensions (ReportService2006.ExtensionTypeEnum ExtensionType);
Public Function ListExtensions (ExtensionType As ExtensionTypeEnum) As Extension()
매개 변수
ExtensionType
ExtensionTypeEnum ExtensionTypeEnum ExtensionTypeEnum

구성된 확장 프로그램을 나열할 확장 프로그램 유형입니다. The extension type for which to list the configured extensions. 사용 가능한 값은 Delivery, Render, Data 또는 All입니다. Available values are Delivery, Render, Data, or All. 자세한 내용은 참조 ExtensionTypeEnum합니다. For more information, see ExtensionTypeEnum.

반환

다음 표에서는 이 작업에 대한 헤더 및 사용 권한 정보를 보여 줍니다. The table below shows header and permissions information on this operation.

* * SOAP 헤더 * * (In) TrustedUserHeaderValue (축소) ServerInfoHeaderValue
* * 필요한 사용 권한을 * * None
의 배열을 반환 Extension 사용 가능한 확장을 포함 하는 개체입니다.
SOAP Headers (In) TrustedUserHeaderValue (Out) ServerInfoHeaderValue
Required Permissions None
Returns an array of Extension objects that contain the available extensions.

예제

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;  

        Extension[] extensions = null;  

        // Retrieve a list of all supported   
        // data processing extensions.   
        try  
        {  
            extensions = rs.ListExtensions(ExtensionTypeEnum.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 ReportingService2006()  
        rs.Url = "http://<Server Name>/_vti_bin" + _  
            "/ReportServer/ReportService2006.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(ExtensionTypeEnum.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  

적용 대상