共用方式為


WcfServiceRemotingListener.ServiceHost Property

Definition

Gets the ServiceHost used by this listener to host the WCF service implementation.

public System.ServiceModel.ServiceHost ServiceHost { get; }
member this.ServiceHost : System.ServiceModel.ServiceHost
Public ReadOnly Property ServiceHost As ServiceHost

Property Value

A ServiceHost used by this listener to host the WCF service implementation.

Remarks

The service host is created by the listener in it's constructor. Before this communication listener is opened by the runtime via OpenAsync(CancellationToken) method, the service host can be customized by accessing it via this property.

Applies to