WorkflowRuntimeElement 类

定义

注意

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
继承
继承
属性

示例

<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 一项功能,必须:

  1. 将行为配置属性添加到 WCF 服务的服务元素。 终结点行为在元素上 endpoint 配置;服务行为在元素上 service 配置。

  2. 创建一个 serviceBehaviors 节,并添加一个行为元素,其中包含与步骤 1 中的 behaviorConfiguration 属性值对应的名称。

  3. serviceDebug将元素添加到步骤 2 中的行为元素,并根据需要启用或禁用各种属性。

构造函数

名称 说明
WorkflowRuntimeElement()
已过时.

初始化 WorkflowRuntimeElement 类的新实例。

属性

名称 说明
BehaviorType
已过时.

获取此行为元素的类型。

CachedInstanceExpiration
已过时.

获取或设置一个值,该值指定缓存实例过期的时间。

CommonParameters
已过时.

获取服务使用的常见参数的集合。

ConfigurationElementName
已过时.

获取此配置元素的名称。

(继承自 ServiceModelExtensionElement)
CurrentConfiguration
已过时.

获取对顶级 Configuration 实例的引用,该实例表示当前 ConfigurationElement 实例所属的配置层次结构。

(继承自 ConfigurationElement)
ElementInformation
已过时.

获取一个 ElementInformation 对象,该对象包含 ConfigurationElement 对象的不可自定义信息和功能。

(继承自 ConfigurationElement)
ElementProperty
已过时.

获取表示 ConfigurationElementProperty 对象本身的 ConfigurationElement 对象。

(继承自 ConfigurationElement)
EnablePerformanceCounters
已过时.

获取或设置一个值,该值指示是否启用性能计数器。

EvaluationContext
已过时.

获取 ContextInformation 对象的 ConfigurationElement 对象。

(继承自 ConfigurationElement)
HasContext
已过时.

获取一个值,该值指示 CurrentConfiguration 属性是否 null

(继承自 ConfigurationElement)
Item[ConfigurationProperty]
已过时.

获取或设置此配置元素的属性或属性。

(继承自 ConfigurationElement)
Item[String]
已过时.

获取或设置此配置元素的属性、属性或子元素。

(继承自 ConfigurationElement)
LockAllAttributesExcept
已过时.

获取锁定属性的集合。

(继承自 ConfigurationElement)
LockAllElementsExcept
已过时.

获取锁定元素的集合。

(继承自 ConfigurationElement)
LockAttributes
已过时.

获取锁定属性的集合。

(继承自 ConfigurationElement)
LockElements
已过时.

获取锁定元素的集合。

(继承自 ConfigurationElement)
LockItem
已过时.

获取或设置一个值,该值指示元素是否已锁定。

(继承自 ConfigurationElement)
Name
已过时.

获取或设置工作流运行时引擎的名称。

Properties
已过时.

获取一个 ConfigurationPropertyCollection 实例,该实例包含一组 ConfigurationProperty 对象,这些对象可以是此配置元素的属性或 ConfigurationElement 对象。

Services
已过时.

获取将添加到引擎的服务 WorkflowRuntime 的集合。

ValidateOnCreate
已过时.

获取或设置一个值,该值指示在创建工作流实例时是否会发生验证。

方法

名称 说明
CopyFrom(ServiceModelExtensionElement)
已过时.

将指定配置元素的内容复制到此配置元素。

(继承自 ServiceModelExtensionElement)
CreateBehavior()
已过时.

根据此配置元素的设置创建自定义行为。

DeserializeElement(XmlReader, Boolean)
已过时.

从配置文件中读取 XML。

(继承自 ConfigurationElement)
Equals(Object)
已过时.

将当前 ConfigurationElement 实例与指定对象进行比较。

(继承自 ConfigurationElement)
GetHashCode()
已过时.

获取表示当前 ConfigurationElement 实例的唯一值。

(继承自 ConfigurationElement)
GetTransformedAssemblyString(String)
已过时.

返回指定程序集名称的转换版本。

(继承自 ConfigurationElement)
GetTransformedTypeString(String)
已过时.

返回指定类型名称的转换版本。

(继承自 ConfigurationElement)
GetType()
已过时.

获取当前实例的 Type

(继承自 Object)
Init()
已过时.

ConfigurationElement 对象设置为其初始状态。

(继承自 ConfigurationElement)
InitializeDefault()
已过时.

用于初始化 ConfigurationElement 对象的默认值集。

(继承自 ConfigurationElement)
IsModified()
已过时.

获取一个值,该值指定是否已修改此配置元素。

(继承自 ServiceModelExtensionElement)
IsReadOnly()
已过时.

获取一个值,该值指示对象 ConfigurationElement 是否为只读。

(继承自 ConfigurationElement)
ListErrors(IList)
已过时.

将此 ConfigurationElement 对象和所有子元素中的无效属性错误添加到传递的列表。

(继承自 ConfigurationElement)
MemberwiseClone()
已过时.

创建当前 Object的浅表副本。

(继承自 Object)
OnDeserializeUnrecognizedAttribute(String, String)
已过时.

获取一个值,该值指示在反序列化期间是否遇到未知属性。

(继承自 ConfigurationElement)
OnDeserializeUnrecognizedElement(String, XmlReader)
已过时.

获取一个值,该值指示在反序列化期间是否遇到未知元素。

(继承自 ConfigurationElement)
OnRequiredPropertyNotFound(String)
已过时.

在找不到所需属性时引发异常。

(继承自 ConfigurationElement)
PostDeserialize()
已过时.

反序列化后调用。

(继承自 ConfigurationElement)
PreSerialize(XmlWriter)
已过时.

在序列化之前调用。

(继承自 ConfigurationElement)
Reset(ConfigurationElement)
已过时.

重置此配置元素对象的内部状态,包括锁和属性集合。

(继承自 ServiceModelExtensionElement)
ResetModified()
已过时.

将方法的值 IsModified() 重置为 false 在派生类中实现时的值。

(继承自 ConfigurationElement)
SerializeElement(XmlWriter, Boolean)
已过时.

将此配置元素的内容写入配置文件。

(继承自 ServiceModelExtensionElement)
SerializeToXmlElement(XmlWriter, String)
已过时.

在派生类中实现时,将此配置元素的外部标记写入配置文件。

(继承自 ConfigurationElement)
SetPropertyValue(ConfigurationProperty, Object, Boolean)
已过时.

将属性设置为指定的值。

(继承自 ConfigurationElement)
SetPropertyValueIfNotDefaultValue<T>(String, T)
已过时.

如果值不是默认值,则设置配置元素的属性值。

(继承自 ServiceModelConfigurationElement)
SetReadOnly()
已过时.

IsReadOnly()设置对象和所有子元素的属性ConfigurationElement

(继承自 ConfigurationElement)
ToString()
已过时.

返回一个表示当前对象的字符串。

(继承自 Object)
Unmerge(ConfigurationElement, ConfigurationElement, ConfigurationSaveMode)
已过时.

ConfigurationElement修改对象以删除不应保存的所有值。

(继承自 ConfigurationElement)

适用于