Breyta

Deila með


DsmlSoapConnection.EndSession Method

Definition

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

public:
 abstract void EndSession();
public abstract void EndSession ();
abstract member EndSession : unit -> unit
Public MustOverride Sub EndSession ()

Exceptions

A communications failure occurred with the DSML server.

There is no open session.

Remarks

The method will block while waiting for a response from the DSML server and will timeout according to the Timeout property.

If the DSML server terminates the session, a WebException is thrown. If SessionId is still valid after the exception is thrown, the request never reached the server and the connection is still considered valid.

Applies to