DsmlSoapConnection.BeginSession 方法

定义

BeginSession() 方法指示 DSML 服务器启动新会话。The BeginSession() method instructs the DSML server to start a new session.

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

例外

如果已在连接上打开会话,则引发该异常。Thrown when a session is already open on the connection.

当从服务器返回的、响应 BeginSession 的 XML 不是格式良好的时,将引发此异常。Thrown when the XML returned from the Server in response to the BeginSession is not well-formed.

如果与 DSML 服务器的通信发生故障,则引发该异常。Thrown when there is a communications failure with the DSML server.

注解

方法将在等待 DSML 服务器的响应时阻止,并将根据 Timeout 属性超时。The method will block while waiting for a response from the DSML server and will timeout according to the Timeout property.

适用于