ServerReport.ListRenderingExtensions 方法
返回服务器报表的所有可用呈现扩展插件。
命名空间: Microsoft.Reporting.WebForms
程序集: Microsoft.ReportViewer.WebForms(在 Microsoft.ReportViewer.WebForms.dll 中)
语法
声明
Public Overrides Function ListRenderingExtensions As RenderingExtension()
用法
Dim instance As ServerReport
Dim returnValue As RenderingExtension()
returnValue = instance.ListRenderingExtensions()
public override RenderingExtension[] ListRenderingExtensions()
public:
virtual array<RenderingExtension^>^ ListRenderingExtensions() override
abstract ListRenderingExtensions : unit -> RenderingExtension[]
override ListRenderingExtensions : unit -> RenderingExtension[]
public override function ListRenderingExtensions() : RenderingExtension[]
返回值
类型:array<Microsoft.Reporting.WebForms.RenderingExtension[]
一个 RenderingExtension 对象数组。
注释
此方法可用于填充下拉列表以允许用户选择用于导出的呈现扩展插件。
示例
Private Sub Button2_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button2.Click
Dim extensions As RenderingExtension() = _
ReportViewer1.ServerReport.ListRenderingExtensions()
For Each extension As RenderingExtension In extensions
Debug.WriteLine("Extension: " + extension.Name + _
" Visible? " + extension.Visible.ToString)
Next
End Sub