語言

WorkflowRuntimeElement 類別

定義

警告

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
繼承
繼承
屬性

範例

<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. 在第 2 步的行為元素中新增一個 serviceDebug 元素,並視需要啟用或停用各種屬性。

建構函式

名稱 Description
WorkflowRuntimeElement()
已淘汰.

初始化 WorkflowRuntimeElement 類別的新執行個體。

屬性

名稱 Description
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
已淘汰.

取得或設定一個值,指示是否會在建立工作流程實例時進行驗證。

方法

名稱 Description
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)

適用於