ReportViewerWebPart.KeepSessionAlive 屬性

定義

取得或設定值,這個值會指出 ReportViewerWebPart 是否應該避免使用者工作階段過期。

public:
 property bool KeepSessionAlive { bool get(); void set(bool value); };
[Microsoft.SharePoint.WebPartPages.WebPartStorage(Microsoft.SharePoint.WebPartPages.Storage.Shared)]
public bool KeepSessionAlive { get; set; }
[<Microsoft.SharePoint.WebPartPages.WebPartStorage(Microsoft.SharePoint.WebPartPages.Storage.Shared)>]
member this.KeepSessionAlive : bool with get, set
Public Property KeepSessionAlive As Boolean

屬性值

Boolean

如果要避免使用者工作階段過期,則為 true,否則為 false。 預設為 true

屬性

備註

true如果您的 SharePoint 應用程式) 中啟用會話,則將這個屬性設定為,會讓 ReportViewer 控制項保持 ASP.NET 會話 (過期。 此外,當報表檢視器 Web 元件處於連接模式時,它會使 ReportViewerWebPart 與報表伺服器的會話保持不過期。

適用於