WorkflowServiceHost 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 WorkflowServiceHost 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| WorkflowServiceHost() |
初始化 WorkflowServiceHost 類別的新執行個體。 |
| WorkflowServiceHost(Stream, Uri[]) |
使用包含工作流程定義及指定服務基底位址的位元組串流,初始化該類別的新 WorkflowServiceHost 實例。 |
| WorkflowServiceHost(String, Uri[]) |
利用工作流程定義路徑及指定服務的基底位址初始化類別的新 WorkflowServiceHost 實例。 |
| WorkflowServiceHost(Type, Uri[]) |
使用工作流類型及服務的基底位址初始化該類別的新 WorkflowServiceHost 實例。 |
| WorkflowServiceHost(Stream, Stream, Uri[]) |
使用包含工作流程定義的位元組串流、包含工作流程規則定義的位元組串流,以及指定服務的基底位址,初始化該 WorkflowServiceHost 類別的新實例。 |
| WorkflowServiceHost(String, String, Uri[]) |
利用工作流程定義路徑、工作流程規則定義路徑及指定服務的基底位址初始化類別的新 WorkflowServiceHost 實例。 |
| WorkflowServiceHost(Stream, Stream, ITypeProvider, Uri[]) |
使用包含工作流程定義的位元組串流、包含工作流程規則定義的位元組串流、自訂活動類型的類型提供者,以及指定服務的基底位址,初始化該類別的新 WorkflowServiceHost 實例。 |
| WorkflowServiceHost(String, String, ITypeProvider, Uri[]) |
初始化類別的新實例 WorkflowServiceHost ,使用工作流程定義路徑、工作流程規則定義路徑、自訂活動類型的類型提供者,以及指定服務的基底位址。 |
WorkflowServiceHost()
初始化 WorkflowServiceHost 類別的新執行個體。
protected:
WorkflowServiceHost();
protected WorkflowServiceHost();
Protected Sub New ()
適用於
WorkflowServiceHost(Stream, Uri[])
使用包含工作流程定義及指定服務基底位址的位元組串流,初始化該類別的新 WorkflowServiceHost 實例。
public:
WorkflowServiceHost(System::IO::Stream ^ workflowDefinition, ... cli::array <Uri ^> ^ baseAddress);
public WorkflowServiceHost(System.IO.Stream workflowDefinition, params Uri[] baseAddress);
new System.ServiceModel.WorkflowServiceHost : System.IO.Stream * Uri[] -> System.ServiceModel.WorkflowServiceHost
Public Sub New (workflowDefinition As Stream, ParamArray baseAddress As Uri())
參數
備註
如果工作流程定義儲存在安全儲存裝置(如資料庫),則使用此超載。
適用於
WorkflowServiceHost(String, Uri[])
利用工作流程定義路徑及指定服務的基底位址初始化類別的新 WorkflowServiceHost 實例。
public:
WorkflowServiceHost(System::String ^ workflowDefinitionPath, ... cli::array <Uri ^> ^ baseAddress);
public WorkflowServiceHost(string workflowDefinitionPath, params Uri[] baseAddress);
new System.ServiceModel.WorkflowServiceHost : string * Uri[] -> System.ServiceModel.WorkflowServiceHost
Public Sub New (workflowDefinitionPath As String, ParamArray baseAddress As Uri())
參數
- workflowDefinitionPath
- String
一個包含工作流程定義檔案路徑的字串。
備註
當工作流程定義以 Windows 檔案形式時,使用這個超載。
適用於
WorkflowServiceHost(Type, Uri[])
使用工作流類型及服務的基底位址初始化該類別的新 WorkflowServiceHost 實例。
public:
WorkflowServiceHost(Type ^ workflowType, ... cli::array <Uri ^> ^ baseAddress);
public WorkflowServiceHost(Type workflowType, params Uri[] baseAddress);
new System.ServiceModel.WorkflowServiceHost : Type * Uri[] -> System.ServiceModel.WorkflowServiceHost
Public Sub New (workflowType As Type, ParamArray baseAddress As Uri())
參數
備註
當工作流程定義為編譯型別時,使用此超載。
適用於
WorkflowServiceHost(Stream, Stream, Uri[])
使用包含工作流程定義的位元組串流、包含工作流程規則定義的位元組串流,以及指定服務的基底位址,初始化該 WorkflowServiceHost 類別的新實例。
public:
WorkflowServiceHost(System::IO::Stream ^ workflowDefinition, System::IO::Stream ^ ruleDefinition, ... cli::array <Uri ^> ^ baseAddress);
public WorkflowServiceHost(System.IO.Stream workflowDefinition, System.IO.Stream ruleDefinition, params Uri[] baseAddress);
new System.ServiceModel.WorkflowServiceHost : System.IO.Stream * System.IO.Stream * Uri[] -> System.ServiceModel.WorkflowServiceHost
Public Sub New (workflowDefinition As Stream, ruleDefinition As Stream, ParamArray baseAddress As Uri())
參數
備註
當工作流程定義與規則定義儲存在安全儲存空間(例如資料庫)時,請使用此超載功能。
適用於
WorkflowServiceHost(String, String, Uri[])
利用工作流程定義路徑、工作流程規則定義路徑及指定服務的基底位址初始化類別的新 WorkflowServiceHost 實例。
public:
WorkflowServiceHost(System::String ^ workflowDefinitionPath, System::String ^ ruleDefinitionPath, ... cli::array <Uri ^> ^ baseAddress);
public WorkflowServiceHost(string workflowDefinitionPath, string ruleDefinitionPath, params Uri[] baseAddress);
new System.ServiceModel.WorkflowServiceHost : string * string * Uri[] -> System.ServiceModel.WorkflowServiceHost
Public Sub New (workflowDefinitionPath As String, ruleDefinitionPath As String, ParamArray baseAddress As Uri())
參數
- workflowDefinitionPath
- String
一個包含工作流程定義檔案路徑的字串。
- ruleDefinitionPath
- String
一個包含工作流程規則定義檔案路徑的字串。
備註
當工作流程定義和規則定義以 Windows 檔案形式時,請使用這種過載。
適用於
WorkflowServiceHost(Stream, Stream, ITypeProvider, Uri[])
使用包含工作流程定義的位元組串流、包含工作流程規則定義的位元組串流、自訂活動類型的類型提供者,以及指定服務的基底位址,初始化該類別的新 WorkflowServiceHost 實例。
public:
WorkflowServiceHost(System::IO::Stream ^ workflowDefinition, System::IO::Stream ^ ruleDefinition, System::Workflow::ComponentModel::Compiler::ITypeProvider ^ typeProvider, ... cli::array <Uri ^> ^ baseAddress);
public WorkflowServiceHost(System.IO.Stream workflowDefinition, System.IO.Stream ruleDefinition, System.Workflow.ComponentModel.Compiler.ITypeProvider typeProvider, params Uri[] baseAddress);
new System.ServiceModel.WorkflowServiceHost : System.IO.Stream * System.IO.Stream * System.Workflow.ComponentModel.Compiler.ITypeProvider * Uri[] -> System.ServiceModel.WorkflowServiceHost
Public Sub New (workflowDefinition As Stream, ruleDefinition As Stream, typeProvider As ITypeProvider, ParamArray baseAddress As Uri())
參數
- typeProvider
- ITypeProvider
一個實作介面 ITypeProvider 的型別提供者。
備註
當你編譯的工作流程參考在另一個組語言中定義的自訂型別時,可以使用這個超載。
適用於
WorkflowServiceHost(String, String, ITypeProvider, Uri[])
初始化類別的新實例 WorkflowServiceHost ,使用工作流程定義路徑、工作流程規則定義路徑、自訂活動類型的類型提供者,以及指定服務的基底位址。
public:
WorkflowServiceHost(System::String ^ workflowDefinitionPath, System::String ^ ruleDefinitionPath, System::Workflow::ComponentModel::Compiler::ITypeProvider ^ typeProvider, ... cli::array <Uri ^> ^ baseAddress);
public WorkflowServiceHost(string workflowDefinitionPath, string ruleDefinitionPath, System.Workflow.ComponentModel.Compiler.ITypeProvider typeProvider, params Uri[] baseAddress);
new System.ServiceModel.WorkflowServiceHost : string * string * System.Workflow.ComponentModel.Compiler.ITypeProvider * Uri[] -> System.ServiceModel.WorkflowServiceHost
Public Sub New (workflowDefinitionPath As String, ruleDefinitionPath As String, typeProvider As ITypeProvider, ParamArray baseAddress As Uri())
參數
- workflowDefinitionPath
- String
一個包含工作流程定義檔案路徑的字串。
- ruleDefinitionPath
- String
一個包含工作流程規則定義檔案路徑的字串。
- typeProvider
- ITypeProvider
一個實作介面 ITypeProvider 的型別提供者。
備註
當你的工作流程定義在工作流程標記檔(.xoml)中,並且它參考了在另一個組合語言中定義的自訂型別時,可以使用這個超載。