ServiceConfiguration.EnableProtocol(Binding) 方法

定义

启用服务终结点的绑定协议。

public:
 System::Collections::ObjectModel::Collection<System::ServiceModel::Description::ServiceEndpoint ^> ^ EnableProtocol(System::ServiceModel::Channels::Binding ^ protocol);
public System.Collections.ObjectModel.Collection<System.ServiceModel.Description.ServiceEndpoint> EnableProtocol (System.ServiceModel.Channels.Binding protocol);
member this.EnableProtocol : System.ServiceModel.Channels.Binding -> System.Collections.ObjectModel.Collection<System.ServiceModel.Description.ServiceEndpoint>
Public Function EnableProtocol (protocol As Binding) As Collection(Of ServiceEndpoint)

参数

protocol
Binding

绑定协议。

返回

服务终结点的集合。

适用于