Partager via


Propriété KeepSessionAlive

Gets or sets a Boolean value that indicates whether the ReportViewerWebPart should keep the user session from expiring.

Espace de noms :  Microsoft.ReportingServices.SharePoint.UI.WebParts
Assembly :  Microsoft.ReportingServices.SharePoint.UI.WebParts (en Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)

Syntaxe

'Déclaration
<WebPartStorageAttribute(Storage.Shared)> _
Public Property KeepSessionAlive As Boolean
    Get
    Set
'Utilisation
Dim instance As ReportViewerWebPart
Dim value As Boolean

value = instance.KeepSessionAlive

instance.KeepSessionAlive = value
[WebPartStorageAttribute(Storage.Shared)]
public bool KeepSessionAlive { get; set; }
[WebPartStorageAttribute(Storage::Shared)]
public:
property bool KeepSessionAlive {
    bool get ();
    void set (bool value);
}
[<WebPartStorageAttribute(Storage.Shared)>]
member KeepSessionAlive : bool with get, set
function get KeepSessionAlive () : boolean
function set KeepSessionAlive (value : boolean)

Valeur de propriété

Type : System. . :: . .Boolean
true to keep the user session from expiring; otherwise, false. The default is true.

Notes

Setting this property to true causes the ReportViewer control to keep the ASP.NET session from expiring (if the session is enabled in your SharePoint application). Also, when the Report Viewer Web Part is in connected mode, it causes the ReportViewerWebPart to keep the session with the report server from expiring.