次の方法で共有


KeepSessionAlive プロパティ

ReportViewerWebPart でユーザー セッションが期限切れにならないようにするかどうかを示す Boolean 値を取得または設定します。

名前空間:  Microsoft.ReportingServices.SharePoint.UI.WebParts
アセンブリ:  Microsoft.ReportingServices.SharePoint.UI.WebParts (Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)

構文

'宣言
<WebPartStorageAttribute(Storage.Shared)> _
Public Property KeepSessionAlive As Boolean
    Get
    Set
'使用
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)

プロパティ値

型: System. . :: . .Boolean
ユーザー セッションが期限切れにならないようにする場合は true、それ以外の場合は false です。既定値は true です。

説明

このプロパティを true に設定すると、ReportViewer コントロールにより ASP.NET セッションの期限切れが回避されます (セッションが SharePoint アプリケーションで有効になっている場合)。また、レポート ビューアー Web パーツが接続モードになっている場合は、ReportViewerWebPart によりレポート サーバーとのセッションの期限切れが回避されます。