ReportExecutionService.ListRenderingExtensions 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回呈现扩展插件的列表。
public:
cli::array <ReportExecution2005::Extension ^> ^ ListRenderingExtensions();
public ReportExecution2005.Extension[] ListRenderingExtensions ();
member this.ListRenderingExtensions : unit -> ReportExecution2005.Extension[]
Public Function ListRenderingExtensions () As Extension()
返回
包含可用呈现扩展插件的 Extension 对象的数组。
示例
若要编译以下代码示例,必须引用 Reporting Services WSDL 并导入某些命名空间。 有关详细信息,请参阅 编译和运行代码示例。 下面的代码示例检索所有呈现扩展插件的列表:
Imports System
Imports System.Web.Services.Protocols
Imports myNamespace.myWebserviceReference
Class Sample
Public Shared Sub Main()
Dim rs As New ReportExecutionService()
rs.Credentials = System.Net.CredentialCache.DefaultCredentials
' Set the base Web service URL of the source server
rs.Url = "http://servername/reportserver/ReportExecution2005.asmx"
Dim extensions As Extension() = Nothing
' Retrieve a list of all supported data processing extensions.
Try
extensions = rs.ListRenderingExtensions()
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;
using myNamespace.myWebserviceReference;
class Sample
{
public static void Main()
{
ReportingService rs = new ReportExecutionService();
// Set the base Web service URL of the source server
rs.Url = "http://servername/reportserver/ReportExecution2005.asmx";
rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
Extension[] extensions = null;
// Retrieve a list of all renderingextensions.
try
{
extensions = rs.ListRenderingExtensions();
if (extensions != null)
{
foreach (Extension extension in extensions)
{
Console.WriteLine("Name: {0}", extension.Name);
}
}
}
catch (SoapException e)
{
Console.WriteLine(e.Detail.OuterXml);
}
}
}
注解
下表显示了有关此操作的标头和权限信息。
SOAP 标头用法 | (In) TrustedUserHeaderValue (Out) ServerInfoHeaderValue |
本机模式所需权限 | 无 |
SharePoint 模式所需权限 | 无 |