共用方式為


ServerReport.GetServerVersion 方法

傳回報表伺服器的版本。

命名空間:  Microsoft.Reporting.WebForms
組件:  Microsoft.ReportViewer.WebForms (在 Microsoft.ReportViewer.WebForms.dll 中)

語法

'宣告
Public Function GetServerVersion As String
'用途
Dim instance As ServerReport
Dim returnValue As String

returnValue = instance.GetServerVersion()
public string GetServerVersion()
public:
String^ GetServerVersion()
member GetServerVersion : unit -> string 
public function GetServerVersion() : String

傳回值

型別:System.String
包含伺服器版本資訊的 string 值。

範例

Private Sub Button2_Click(ByVal sender As System.Object, _
   ByVal e As System.EventArgs) Handles Button2.Click
    Debug.WriteLine(ReportViewer1.ServerReport.GetServerVersion)
End Sub

請參閱

參考

ServerReport 類別

Microsoft.Reporting.WebForms 命名空間