語言

WorkflowServiceHost.AddServiceEndpoint 方法

定義

為託管服務新增服務端點。

多載

名稱 Description
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 新增了工作流程服務。

例外狀況

implementedContract 是 null。

-或-

address 是 null。

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 新增了工作流程服務。

例外狀況

implementedContract 是 null。

-或-

address 是 null。

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 新增了工作流程服務。

例外狀況

implementedContract 是 null。

-或-

address 是 null。

工作流程服務並未實作 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 新增了工作流程服務。

例外狀況

implementedContract 是 null。

-或-

address 是 null。

工作流程服務並未實作 implementedContract。

-或-

ServiceContractAttribute 未指定於 implementedContract。

適用於