共用方式為


IReportServerConnection 介面

當 ReportViewer Web 表單控制項並未搭配任何工作階段狀態時,提供報表伺服器連接資訊。

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

語法

'宣告
Public Interface IReportServerConnection _
    Inherits IReportServerCredentials
public interface IReportServerConnection : IReportServerCredentials
public interface class IReportServerConnection : IReportServerCredentials
type IReportServerConnection =  
    interface
        interface IReportServerCredentials
    end
public interface IReportServerConnection extends IReportServerCredentials

IReportServerConnection 類型會公開下列成員。

屬性

  名稱 描述
公用屬性 ImpersonationUser ReportViewer 控制項連接到報表伺服器時,取得或設定要模擬之使用者的 WindowsIdentity。 (繼承自 IReportServerCredentials)。
公用屬性 NetworkCredentials 取得或設定用來驗證報表伺服器的網路認證。 (繼承自 IReportServerCredentials)。
公用屬性 ReportServerUrl 傳回報表伺服器的 URL。
公用屬性 Timeout 取得等待伺服器通訊的毫秒數。

回頁首

方法

  名稱 描述
公用方法 GetFormsCredentials 提供將用來連接到報表伺服器的資訊 (此伺服器是為了表單驗證而設定)。 (繼承自 IReportServerCredentials)。

回頁首

備註

當 ReportViewer Web 表單控制項並未搭配任何工作階段狀態時,您可以實作這個介面來提供連接資訊。ReportViewer 控制項的工作階段狀態使用方式設定在 Web.config 設定檔中。

請參閱

參考

Microsoft.Reporting.WebForms 命名空間

其他資源

ReportViewer 的 Web.config 設定