Επεξεργασία

Κοινή χρήση μέσω


DsmlSoapHttpConnection.EndSession Method

Definition

Ends the session with the DSML server and clears the SessionId property.

public:
 override void EndSession();
public override void EndSession ();
override this.EndSession : unit -> unit
Public Overrides Sub EndSession ()

Exceptions

There is a communications failure with the DSML server.

There is no open session.

Remarks

This method will block while waiting for a response from the DSML server and will time out according to the Timeout property.

If the DSML server has already terminated the session on its own, a WebException will be thrown. If the SessionId is still valid after the exception is thrown, the request never reached the server and the connection is still considered valid.

Applies to