ServerReport.ListRenderingExtensions 方法
傳回伺服器報表所有可用的轉譯延伸模組。
命名空間: Microsoft.Reporting.WebForms
組件: Microsoft.ReportViewer.WebForms (在 Microsoft.ReportViewer.WebForms.dll 中)
語法
'宣告
Public Overrides Function ListRenderingExtensions As RenderingExtension()
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