共用方式為


DiscoveryServiceExtension.IExtension<ServiceHostBase>.Detach 方法

定義

覆寫此方法可讓延伸中斷與其服務主機的連線。

 virtual void System.ServiceModel.IExtension<System.ServiceModel.ServiceHostBase>.Detach(System::ServiceModel::ServiceHostBase ^ owner) = System::ServiceModel::IExtension<System::ServiceModel::ServiceHostBase ^>::Detach;
void IExtension<ServiceHostBase>.Detach (System.ServiceModel.ServiceHostBase owner);
abstract member System.ServiceModel.IExtension<System.ServiceModel.ServiceHostBase>.Detach : System.ServiceModel.ServiceHostBase -> unit
override this.System.ServiceModel.IExtension<System.ServiceModel.ServiceHostBase>.Detach : System.ServiceModel.ServiceHostBase -> unit
Sub Detach (owner As ServiceHostBase) Implements IExtension(Of ServiceHostBase).Detach

參數

owner
ServiceHostBase

要中斷連線的來源服務主機。

實作

備註

這個方法的基底類別實作會擲回 InvalidOperationException,表示無法中斷探索服務延伸的連線。

適用於