本文由机器翻译。若要查看英语原文,请勾选“英语”复选框。 也可将鼠标指针移到文本上,在弹出窗口中显示英语原文。
翻译
英语

CommunicationObject.Abort 方法 ()

 

使通信对象立即从其当前状态转换到正在关闭状态。

命名空间:   System.ServiceModel.Channels
程序集:  System.ServiceModel(位于 System.ServiceModel.dll)

This method indicates that any unfinished work should be ignored or ungracefully terminated before returning. The M:System.ServiceModel.Channels.CommunicationObject.Abort method can be used to cancel any outstanding operations, including outstanding calls to Overload:System.ServiceModel.Channels.CommunicationObject.Close.

To gracefully transition a T:System.ServiceModel.Channels.CommunicationObject from any state other than F:System.ServiceModel.CommunicationState.Closed into the F:System.ServiceModel.CommunicationState.Closed state, call Overload:System.ServiceModel.Channels.CommunicationObject.Close or one of its asynchronous versions, Overload:System.ServiceModel.Channels.CommunicationObject.BeginClose.

通用 Windows 平台
自 8 起可用
.NET Framework
自 3.0 起可用
可移植类库
可移植 .NET 平台 中受支持
Silverlight
自 2.0 起可用
Windows Phone Silverlight
自 7.0 起可用
返回页首
显示: