ServiceHostBase.AddDefaultEndpoints Method ()

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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
Available since 4.0
Return to top