ServiceHostBase.AddDefaultEndpoints 方法

定義

針對在具有預設繫結的服務主機上找到的各個合約,為所有的基底位址加入服務端點。Adds service endpoints for all base addresses in each contract found in the service host with the default binding.

public:
 virtual System::Collections::ObjectModel::ReadOnlyCollection<System::ServiceModel::Description::ServiceEndpoint ^> ^ AddDefaultEndpoints();
public virtual System.Collections.ObjectModel.ReadOnlyCollection<System.ServiceModel.Description.ServiceEndpoint> AddDefaultEndpoints ();
abstract member AddDefaultEndpoints : unit -> System.Collections.ObjectModel.ReadOnlyCollection<System.ServiceModel.Description.ServiceEndpoint>
override this.AddDefaultEndpoints : unit -> System.Collections.ObjectModel.ReadOnlyCollection<System.ServiceModel.Description.ServiceEndpoint>
Public Overridable Function AddDefaultEndpoints () As ReadOnlyCollection(Of ServiceEndpoint)

傳回

ReadOnlyCollection<ServiceEndpoint>

預設端點的唯讀集合。A read-only collection of default endpoints.

適用於