ReportViewer.KeepSessionAlive 속성

ReportViewer가 실행되는 동안 보고서 서버 세션이 만료되지 않도록 할지 여부를 나타내는 Boolean 값을 가져오거나 설정합니다.

네임스페이스:  Microsoft.Reporting.WinForms
어셈블리:  Microsoft.ReportViewer.WinForms(Microsoft.ReportViewer.WinForms.dll)

구문

‘선언
Public Property KeepSessionAlive As Boolean
    Get
    Set
‘사용 방법
Dim instance As ReportViewer
Dim value As Boolean

value = instance.KeepSessionAlive

instance.KeepSessionAlive = value
public bool KeepSessionAlive { get; set; }
public:
property bool KeepSessionAlive {
    bool get ();
    void set (bool value);
}
member KeepSessionAlive : bool with get, set
function get KeepSessionAlive () : boolean
function set KeepSessionAlive (value : boolean)

속성 값

유형: System.Boolean
보고서 서버 세션이 만료되지 않도록 하려면 true이고, 그렇지 않으면 false입니다. 기본값은 true입니다.

주의

원격 처리 모드에서 이 속성을 true로 설정하는 경우 ReportViewer 컨트롤은 보고서 서버 세션이 만료되지 않도록 합니다. ReportViewer 컨트롤은 이렇게 하기 위해 보고서 서버에 ping을 수행합니다. 활동이 없는 경우에도 사용자를 위해 보고서 서버 세션을 활성 상태로 유지하려면 KeepSessionAlive를 true로 설정합니다. 응용 프로그램에서 세션의 시간 초과와 만료를 허용하려면 KeepSessionAlive를 false로 설정합니다.

로컬 처리 모드에서 이 속성을 설정하면 아무 효과도 없습니다.

KeepSessionAlive가 false로 설정되고 보고서 서버 세션이 이미 만들어졌으면 이 속성을 true로 설정할 수 없습니다. 이렇게 설정하면 InvalidOperationException이 throw됩니다.

참고 항목

참조

ReportViewer 클래스

Microsoft.Reporting.WinForms 네임스페이스