WorkflowRuntimeElement 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
The WF3 types are deprecated. Instead, please use the new WF4 types from System.Activities.*
表示一个配置元素,该元素指定用于托管基于工作流的Windows Communication Foundation (WCF) 服务的 WorkflowRuntime 实例的设置。
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属性值对应的名称。serviceDebug将元素添加到步骤 2 中的行为元素,并根据需要启用或禁用各种属性。
构造函数
| 名称 | 说明 |
|---|---|
| WorkflowRuntimeElement() |
已过时.
初始化 WorkflowRuntimeElement 类的新实例。 |