IReportServerConnection 介面
當 ReportViewer Web 表單控制項並未搭配任何工作階段狀態時,提供報表伺服器連接資訊。
命名空間: Microsoft.Reporting.WebForms
組件: Microsoft.ReportViewer.WebForms (在 Microsoft.ReportViewer.WebForms.dll 中)
語法
'宣告
Public Interface IReportServerConnection _
Inherits IReportServerCredentials
'用途
Dim instance As IReportServerConnection
public interface IReportServerConnection : IReportServerCredentials
public interface class IReportServerConnection : IReportServerCredentials
type IReportServerConnection =
interface
interface IReportServerCredentials
end
public interface IReportServerConnection extends IReportServerCredentials
IReportServerConnection 型別公開下列成員。
屬性
名稱 | 說明 | |
---|---|---|
ImpersonationUser | 當 ReportViewer 控制項連接到報表伺服器時,取得或設定要模擬之使用者的 System.Security.Principal.WindowsIdentity。 (繼承自 IReportServerCredentials。) | |
NetworkCredentials | 取得或設定用來驗證報表伺服器的網路認證。 (繼承自 IReportServerCredentials。) | |
ReportServerUrl | 傳回報表伺服器的 URL。 | |
Timeout | 取得等待伺服器通訊的毫秒數。 |
上層
方法
名稱 | 說明 | |
---|---|---|
GetFormsCredentials | 提供將用來連接到報表伺服器的資訊 (此伺服器是為了表單驗證而設定)。 (繼承自 IReportServerCredentials。) |
上層
備註
當 ReportViewer Web 表單控制項並未搭配任何工作階段狀態時,您可以實作這個介面來提供連接資訊。ReportViewer 控制項的工作階段狀態使用方式設定在 Web.config 設定檔中。
請參閱
參考
Microsoft.Reporting.WebForms 命名空間