2.1.10 EndSession


Description

The EndSession method ends the exclusive use of the current Origin session. It has no meaning in the case of multi-instance Origin automation objects (Origin.Application,), in which case, any connection creates a separate Origin session.

After a client calls BeginSession no other clients will be able to connect to Origin until the client that called BeginSession calls EndSession. This allows a client to perform its tasks to completion without interference from other clients. This behavior is only available with Origin Pro. The BeginSession and EndSession methods have no affect on non-Pro Origin.

Syntax

VB: Function EndSession As Boolean
C++: bool EndSession
C#: bool EndSession

Return

Remark

Examples

Python

import OriginExt as O
app = O.ApplicationSI(); app.Visible = app.MAINWND_SHOW
if app.BeginSession():
    app.EndSession()

Version Information

8.0SR2

See Also

BeginSession