WorkflowServiceHost.AddServiceEndpoint 方法

定義

將服務端點新增至裝載的服務。

多載

AddServiceEndpoint(Type, Binding, String)

使用指定的合約、繫結和端點位址,新增工作流程服務的服務端點。

AddServiceEndpoint(Type, Binding, Uri)

使用指定的合約、繫結以及含有端點位址的 URI,將服務端點新增至工作流程服務。

AddServiceEndpoint(Type, Binding, String, Uri)

使用指定的合約、繫結、端點位址以及服務所接聽的 URI,將服務端點新增至工作流程服務。

AddServiceEndpoint(Type, Binding, Uri, Uri)

使用指定的合約、繫結、含有端點位址的 URI 以及服務所接聽的 URI,將服務端點新增至工作流程服務。

AddServiceEndpoint(Type, Binding, String)

使用指定的合約、繫結和端點位址,新增工作流程服務的服務端點。

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

參數

implementedContract
Type

已加入之端點的合約 Type

binding
Binding

已新增之端點的 Binding

address
String

已加入之端點的位址。

傳回

已加入至工作流程服務的 ServiceEndpoint

例外狀況

implementedContractnull

-或-

addressnull

未為 ServiceContractAttribute 指定 implementedContract。 -或-

工作流程服務不會實作 implementedContract

適用於

AddServiceEndpoint(Type, Binding, Uri)

使用指定的合約、繫結以及含有端點位址的 URI,將服務端點新增至工作流程服務。

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

參數

implementedContract
Type

已加入之端點的合約 Type

binding
Binding

已新增之端點的 Binding

address
Uri

Uri,其中包含已新增之端點的位址。

傳回

已加入至工作流程服務的 ServiceEndpoint

例外狀況

implementedContractnull

-或-

addressnull

未為 ServiceContractAttribute 指定 implementedContract

-或-

工作流程服務不會實作 implementedContract

適用於

AddServiceEndpoint(Type, Binding, String, Uri)

使用指定的合約、繫結、端點位址以及服務所接聽的 URI,將服務端點新增至工作流程服務。

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

參數

implementedContract
Type

已加入之端點的合約 Type

binding
Binding

已新增之端點的 Binding

address
String

服務的端點位址。

listenUri
Uri

服務端點可以接聽的 Uri

傳回

已加入至工作流程服務的 ServiceEndpoint

例外狀況

implementedContractnull

-或-

addressnull

工作流程服務不會實作 implementedContract

-或-

未為 ServiceContractAttribute 指定 implementedContract

適用於

AddServiceEndpoint(Type, Binding, Uri, Uri)

使用指定的合約、繫結、含有端點位址的 URI 以及服務所接聽的 URI,將服務端點新增至工作流程服務。

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

參數

implementedContract
Type

已加入之端點的合約 Type

binding
Binding

已新增之端點的 Binding

address
Uri

Uri,其中包含已新增之端點的位址。

listenUri
Uri

服務端點可以接聽的 Uri

傳回

已加入至工作流程服務的 ServiceEndpoint

例外狀況

implementedContractnull

-或-

addressnull

工作流程服務不會實作 implementedContract

-或-

未為 ServiceContractAttribute 指定 implementedContract

適用於