ServiceHostBase.AddDefaultEndpoints 方法

定义

使用默认绑定为在服务主机中找到的每个协定中的所有基址添加服务终结点。

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>

默认终结点的只读集合。

适用于