Export (0) Print
Expand All

DsmlSoapConnection.BeginSession Method

The BeginSession method instructs the DSML server to start a new session.

Namespace:  System.DirectoryServices.Protocols
Assembly:  System.DirectoryServices.Protocols (in System.DirectoryServices.Protocols.dll)

[DirectoryServicesPermissionAttribute(SecurityAction.LinkDemand, Unrestricted = true)]
public abstract void BeginSession()

ExceptionCondition
InvalidOperationException

Thrown when a session is already open on the connection.

DsmlInvalidDocumentException

Thrown when the XML returned from the Server in response to the BeginSession is not well-formed.

WebException

Thrown when there is a communications failure with the DSML server.

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft