Sessions.CloseSession(Session, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Closes the session and if it was the active session, assigns another session to be the active one.
public:
virtual bool CloseSession(Microsoft::Uii::Csr::Session ^ session, bool forceClose);
public virtual bool CloseSession (Microsoft.Uii.Csr.Session session, bool forceClose);
abstract member CloseSession : Microsoft.Uii.Csr.Session * bool -> bool
override this.CloseSession : Microsoft.Uii.Csr.Session * bool -> bool
Public Overridable Function CloseSession (session As Session, forceClose As Boolean) As Boolean
Parameters
- session
- Session
Specifies the session object to close.
- forceClose
- Boolean
True
if the session should be forced to close; otherwise false
.
Returns
True
if the session was closed successfully; otherwise false
.