ReportingService2005.ListExtensions(ExtensionTypeEnum) Method
Definition
返回为给定扩展插件类型配置的扩展插件的列表。Returns a list of extensions that are configured for a given extension type.
public:
cli::array <ReportService2005::Extension ^> ^ ListExtensions(ReportService2005::ExtensionTypeEnum ExtensionType);
public ReportService2005.Extension[] ListExtensions (ReportService2005.ExtensionTypeEnum ExtensionType);
member this.ListExtensions : ReportService2005.ExtensionTypeEnum -> ReportService2005.Extension[]
Public Function ListExtensions (ExtensionType As ExtensionTypeEnum) As Extension()
Parameters
- ExtensionType
- 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.
Returns
返回包含可用扩展插件的 Extension 对象的数组。Returns an array of Extension objects that contains the available extensions.
Examples
若要编译下面的代码示例,必须引用 Reporting Services WSDL 并导入某些命名空间。To compile the following code example, you must reference the Reporting Services WSDL and import certain namespaces. 有关详细信息,请参阅 编译和运行代码示例。For more information, see Compiling and Running Code Examples. 下面的代码示例检索当前安装在 Report Server 上的所有受支持的数据处理扩展插件的列表:The following code example retrieves a list of all supported data processing extensions that are currently installed on the report server:
Imports System
Imports System.Web.Services.Protocols
Class Sample
Public Shared Sub Main()
Dim rs As New ReportingService2005()
rs.Credentials = System.Net.CredentialCache.DefaultCredentials
' Set the base Web service URL of the source server
rs.Url = "http://servername/reportserver/reportservice.asmx"
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 '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;
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);
}
}
}
Remarks
下表显示了有关此操作的标头和权限信息。The table below shows header and permissions information on this operation.
SOAP 标头SOAP Headers | (Out) ServerInfoHeaderValue(Out) ServerInfoHeaderValue |
所需的权限Required Permissions | 无None |