共用方式為


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

繫結通訊協定。

傳回

服務端點的集合。

適用於