IApplication.Close Method
Sends a request to the QWS3270 window with the specified session ID or session name to close the session.
Namespace: Â JollyGiant.Emulation
Assembly: Â JGSComdotNet (in JGSComdotNet.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
StatusCode Close( Object sessionID ) |
Visual Basic (Declaration) |
---|
Function Close ( _ sessionID As Object _ ) As StatusCode |
Visual C++ |
---|
StatusCode Close( Object^ sessionID ) |
JavaScript |
---|
function Close(sessionID); |
Parameters
sessionID Type: System..::.Object  The session ID or name of the instance to close.
Return Value
The StatusCode indicating the result of the operation.This can be one of the following values:
Status code | Description |
---|---|
Ok | Message to QWS session with specified session name to close was successfully posted. |
InvalidPsId | The specified session ID or name was invalid. |
WHLLUNKNOWN | An unknown error occurred. |
Remarks
This method can only be used if the session was started with either the Start(String, String, Char%) or the StartSession(String, String) method. If the session was started with the Start(String, String, Char%) method, the session parameter must specify the returned session ID. If the session was started with the StartSession(String, String) method, the parameter must specify the session name used to start the session.