DsmlSoapConnection.EndSession 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.
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.