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()

Exception Condition
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
Available since 2.0
Return to top
Show: