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# |
---|
public StatusCode Close( Object session ) |
Visual Basic (Declaration) |
---|
Public Function Close ( _ session As Object _ ) As StatusCode |
Visual C++ |
---|
public: virtual StatusCode Close( Object^ session ) sealed |
JavaScript |
---|
function Close(session); |
Parameters
session
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. |
Implements
IApplication..::.Close(Object)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.