DiscoveryClient.ICommunicationObject.Close 方法
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使通信对象从其当前状态转换到关闭状态。
ICommunicationObject.Close(TimeSpan) |
使通信对象在指定时间间隔内从当前状态转换到关闭状态。 |
ICommunicationObject.Close() |
使通信对象从其当前状态转换到关闭状态。 |
使通信对象在指定时间间隔内从当前状态转换到关闭状态。
virtual void System.ServiceModel.ICommunicationObject.Close(TimeSpan timeout) = System::ServiceModel::ICommunicationObject::Close;
C#
void ICommunicationObject.Close(TimeSpan timeout);
abstract member System.ServiceModel.ICommunicationObject.Close : TimeSpan -> unit
override this.System.ServiceModel.ICommunicationObject.Close : TimeSpan -> unit
Sub Close (timeout As TimeSpan) Implements ICommunicationObject.Close
参数
实现
适用于
.NET Framework 4.8.1 和其他版本
产品 | 版本 |
---|---|
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
使通信对象从其当前状态转换到关闭状态。
virtual void System.ServiceModel.ICommunicationObject.Close() = System::ServiceModel::ICommunicationObject::Close;
C#
void ICommunicationObject.Close();
abstract member System.ServiceModel.ICommunicationObject.Close : unit -> unit
override this.System.ServiceModel.ICommunicationObject.Close : unit -> unit
Sub Close () Implements ICommunicationObject.Close
实现
注解
此成员是显式接口成员的实现。 它只能在 DiscoveryClient 实例被强制转换为 ICommunicationObject 接口时使用。
适用于
.NET Framework 4.8.1 和其他版本
产品 | 版本 |
---|---|
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |