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,其中包含端點接聽傳入訊息的所在位址。

傳回

加入至組態服務的服務端點。

適用於