ServiceConfiguration.AddServiceEndpoint 方法

定义

向服务配置添加服务终结点。

重载

AddServiceEndpoint(ServiceEndpoint)

将指定的服务终结点添加到配置服务中。

AddServiceEndpoint(Type, Binding, String)

使用指定的协定、绑定和终结点地址将服务终结点添加到配置服务中。

AddServiceEndpoint(Type, Binding, Uri)

使用指定的约定、绑定和包含终结点地址的 URI 将服务终结点添加到配置服务中。

AddServiceEndpoint(Type, Binding, String, Uri)

使用指定的协定、绑定和终结点地址以及包含服务所侦听地址的 URI,将服务终结点添加到配置服务中。

AddServiceEndpoint(Type, Binding, Uri, Uri)

使用指定的协定、绑定和包含终结点与所侦听地址的 URI,将服务终结点添加到配置服务。

AddServiceEndpoint(ServiceEndpoint)

将指定的服务终结点添加到配置服务中。

public:
 void AddServiceEndpoint(System::ServiceModel::Description::ServiceEndpoint ^ endpoint);
public void AddServiceEndpoint (System.ServiceModel.Description.ServiceEndpoint endpoint);
member this.AddServiceEndpoint : System.ServiceModel.Description.ServiceEndpoint -> unit
Public Sub AddServiceEndpoint (endpoint As ServiceEndpoint)

参数

endpoint
ServiceEndpoint

服务终结点。

适用于

AddServiceEndpoint(Type, Binding, String)

使用指定的协定、绑定和终结点地址将服务终结点添加到配置服务中。

public:
 System::ServiceModel::Description::ServiceEndpoint ^ AddServiceEndpoint(Type ^ contractType, System::ServiceModel::Channels::Binding ^ binding, System::String ^ address);
public System.ServiceModel.Description.ServiceEndpoint AddServiceEndpoint (Type contractType, System.ServiceModel.Channels.Binding binding, string address);
member this.AddServiceEndpoint : Type * System.ServiceModel.Channels.Binding * string -> System.ServiceModel.Description.ServiceEndpoint
Public Function AddServiceEndpoint (contractType As Type, binding As Binding, address As String) As ServiceEndpoint

参数

contractType
Type

所添加终结点的协定的类型。

binding
Binding

添加的终结点的绑定。

address
String

所添加终结点的地址。

返回

添加到配置服务服务的终点。

适用于

AddServiceEndpoint(Type, Binding, Uri)

使用指定的约定、绑定和包含终结点地址的 URI 将服务终结点添加到配置服务中。

public:
 System::ServiceModel::Description::ServiceEndpoint ^ AddServiceEndpoint(Type ^ contractType, System::ServiceModel::Channels::Binding ^ binding, Uri ^ address);
public System.ServiceModel.Description.ServiceEndpoint AddServiceEndpoint (Type contractType, System.ServiceModel.Channels.Binding binding, Uri address);
member this.AddServiceEndpoint : Type * System.ServiceModel.Channels.Binding * Uri -> System.ServiceModel.Description.ServiceEndpoint
Public Function AddServiceEndpoint (contractType As Type, binding As Binding, address As Uri) As ServiceEndpoint

参数

contractType
Type

所添加终结点的协定的类型。

binding
Binding

添加的终结点的绑定。

address
Uri

包含所添加终结点地址的 URI。

返回

添加到配置服务服务的终点。

适用于

AddServiceEndpoint(Type, Binding, String, Uri)

使用指定的协定、绑定和终结点地址以及包含服务所侦听地址的 URI,将服务终结点添加到配置服务中。

public:
 System::ServiceModel::Description::ServiceEndpoint ^ AddServiceEndpoint(Type ^ contractType, System::ServiceModel::Channels::Binding ^ binding, System::String ^ address, Uri ^ listenUri);
public System.ServiceModel.Description.ServiceEndpoint AddServiceEndpoint (Type contractType, System.ServiceModel.Channels.Binding binding, string address, Uri listenUri);
member this.AddServiceEndpoint : Type * System.ServiceModel.Channels.Binding * string * Uri -> System.ServiceModel.Description.ServiceEndpoint
Public Function AddServiceEndpoint (contractType As Type, binding As Binding, address As String, listenUri As Uri) As ServiceEndpoint

参数

contractType
Type

终结点实现的协定的类型。

binding
Binding

添加的终结点的绑定。

address
String

所添加终结点的地址。

listenUri
Uri

包含终结点在其上侦听传入消息的地址的 URI 。

返回

添加到配置服务服务的终点。

适用于

AddServiceEndpoint(Type, Binding, Uri, Uri)

使用指定的协定、绑定和包含终结点与所侦听地址的 URI,将服务终结点添加到配置服务。

public:
 System::ServiceModel::Description::ServiceEndpoint ^ AddServiceEndpoint(Type ^ contractType, System::ServiceModel::Channels::Binding ^ binding, Uri ^ address, Uri ^ listenUri);
public System.ServiceModel.Description.ServiceEndpoint AddServiceEndpoint (Type contractType, System.ServiceModel.Channels.Binding binding, Uri address, Uri listenUri);
member this.AddServiceEndpoint : Type * System.ServiceModel.Channels.Binding * Uri * Uri -> System.ServiceModel.Description.ServiceEndpoint
Public Function AddServiceEndpoint (contractType As Type, binding As Binding, address As Uri, listenUri As Uri) As ServiceEndpoint

参数

contractType
Type

终结点实现的协定的类型。

binding
Binding

添加的终结点的绑定。

address
Uri

包含所添加终结点地址的 URI。

listenUri
Uri

包含终结点在其上侦听传入消息的地址的 URI。

返回

添加到配置服务服务的终点。

适用于