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

属性值

true 可防止用户会话过期;否则为 false。 默认为 true

属性
Microsoft.SharePoint.WebPartPages.WebPartStorageAttribute

注解

将此属性设置为 true 会使 ReportViewer 控件在 SharePoint 应用程序中启用会话) 时,使 ASP.NET 会话不过期 (。 此外,当报表查看器 Web 部件处于连接模式时,它会导致 ReportViewerWebPart 与报表服务器保持会话不过期。

适用于