WorkflowRuntimeElement 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
The WF3 types are deprecated. Instead, please use the new WF4 types from System.Activities.*
代表一個設定元素,指定為 WorkflowRuntime 實例設置,用於承載基於工作流程的 Windows Communication Foundation(WCF)服務。
public ref class WorkflowRuntimeElement : System::ServiceModel::Configuration::BehaviorExtensionElement
public class WorkflowRuntimeElement : System.ServiceModel.Configuration.BehaviorExtensionElement
[System.Obsolete("The WF3 types are deprecated. Instead, please use the new WF4 types from System.Activities.*")]
public class WorkflowRuntimeElement : System.ServiceModel.Configuration.BehaviorExtensionElement
type WorkflowRuntimeElement = class
inherit BehaviorExtensionElement
[<System.Obsolete("The WF3 types are deprecated. Instead, please use the new WF4 types from System.Activities.*")>]
type WorkflowRuntimeElement = class
inherit BehaviorExtensionElement
Public Class WorkflowRuntimeElement
Inherits BehaviorExtensionElement
- 繼承
-
WorkflowRuntimeElement
- 繼承
- 屬性
範例
<serviceBehaviors>
<behavior name="ServiceBehavior">
<workflowRuntime name="WorkflowServiceHostRuntime" validateOnCreate="true" enablePerformanceCounters="true">
<services>
<add type="NetFx.Checkin.Scenario.WorkflowServices.WorkflowBasedServices.Common.TestPersistenceService.FilePersistenceService, NetFx.Checkin.Scenario.WorkflowServices.WorkflowBasedServices.Common"/>
</services>
</workflowRuntime>
</behavior>
</serviceBehaviors>
備註
要啟用或停用使用設定檔的某項 ServiceDebugElement 功能,您必須:
在你的 WCF 服務的服務元素中加入行為設定屬性。 端點行為是在元素上配置
endpoint;服務行為則是在元素上配置service。建立一個
serviceBehaviors區段,並加入一個名稱與第 1 步屬性值對behaviorConfiguration應的行為元素。在第 2 步的行為元素中新增一個
serviceDebug元素,並視需要啟用或停用各種屬性。
建構函式
| 名稱 | Description |
|---|---|
| WorkflowRuntimeElement() |
已淘汰.
初始化 WorkflowRuntimeElement 類別的新執行個體。 |