ServiceHostBase.AddDefaultEndpoints Method

.NET Framework 4.6 and 4.5

Adds service endpoints for all base addresses in each contract found in the service host with the default binding.

Namespace:  System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public virtual ReadOnlyCollection<ServiceEndpoint> AddDefaultEndpoints()

Return Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<ServiceEndpoint>
A read-only collection of default endpoints.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft