将 IDeliveryReportServerInformation 接口用于传递扩展插件

IDeliveryReportServerInformation 接口公开多个属性,您可以使用这些属性来检索有关报表服务器的信息。 您可以使用此信息来传递通知和报表。 当实现传递扩展插件类时,您按照 IDeliveryExtension 接口的要求实现 ReportServerInformation 属性。 ReportServerInformation 属性返回一个实现 IDeliveryReportServerInformation 接口的对象。 从该对象,您可以获得报表服务器当前支持的呈现扩展插件的列表。

以下 for 循环可用来在 ArrayList 对象中存储报表服务器上当前可用的呈现扩展插件的列表。

Dim renderFormats As New ArrayList()
Dim e As Microsoft.ReportingServices.Interfaces.Extension
For Each e In  ReportServerInformation.RenderingExtension
   If e.Visible Then
      renderFormats.Add(e.Name)
   End If
Next e
ArrayList renderFormats = new ArrayList();
foreach (Microsoft.ReportingServices.Interfaces.Extension e in ReportServerInformation.RenderingExtension)
{ 
   if (e.Visible)
   {
      renderFormats.Add(e.Name);
   }
}

有关 IDeliveryReportServerInformation 接口的详细信息,请参阅将 IDeliveryReportServerInformation 接口用于传递扩展插件

请参阅

参考

Microsoft.ReportingServices.Interfaces

Reporting Services 扩展插件库

其他资源

实现传递扩展插件