ChannelDispatcher::Attach Method (ServiceHostBase^)
.NET Framework (current version)
Attaches the channel dispatcher to the host.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Parameters
- host
-
Type:
System.ServiceModel::ServiceHostBase^
The ServiceHostBase for the service.
| Exception | Condition |
|---|---|
| InvalidOperationException | |
| ObjectDisposedException | |
| CommunicationObjectFaultedException | The communication object is in a Faulted state. |
This property can only be set when the instance of the ChannelDispatcher is in the Created state, as this is the only state that is both mutable and not disposed.
.NET Framework
Available since 3.0
Available since 3.0
Show: