次の方法で共有


ReportingService2010.ListExtensions(String) メソッド

定義

指定した拡張機能の種類に対して構成された拡張機能の一覧を返します。

public:
 cli::array <ReportService2010::Extension ^> ^ ListExtensions(System::String ^ ExtensionType);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListExtensions", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
[System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
public ReportService2010.Extension[] ListExtensions (string ExtensionType);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListExtensions", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)>]
[<System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")>]
[<System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)>]
member this.ListExtensions : string -> ReportService2010.Extension[]
Public Function ListExtensions (ExtensionType As String) As Extension()

パラメーター

ExtensionType
String

一覧を表示する、構成された拡張機能の種類を指定します。

サポートされている拡張機能の種類の一覧を表示するには、ListExtensionTypes() メソッドを使用します。

戻り値

使用可能な拡張機能を含むオブジェクトの Extension 配列を返します。

属性

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  

注釈

次の表に、この操作に関連するヘッダーおよび権限の情報を示します。

SOAP ヘッダーの使用方法 (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
ネイティブ モードで必要なアクセス許可 なし
SharePoint モードで必要なアクセス許可 なし

適用対象