DurableTimerExtension DurableTimerExtension DurableTimerExtension DurableTimerExtension Class

定義

表示可繼續存在的活動計時器擴充。Represents an activity timer extension that can be persisted.

public ref class DurableTimerExtension : System::Activities::Statements::TimerExtension, IDisposable, System::Activities::Hosting::IWorkflowInstanceExtension
public class DurableTimerExtension : System.Activities.Statements.TimerExtension, IDisposable, System.Activities.Hosting.IWorkflowInstanceExtension
type DurableTimerExtension = class
    inherit TimerExtension
    interface IWorkflowInstanceExtension
    interface IDisposable
Public Class DurableTimerExtension
Inherits TimerExtension
Implements IDisposable, IWorkflowInstanceExtension
繼承
DurableTimerExtensionDurableTimerExtensionDurableTimerExtensionDurableTimerExtension
實作

備註

ADurableTimerExtension物件只能是單一工作流程執行個體相關聯。A DurableTimerExtension object can only be associated with a single workflow instance. 如果DurableTimerExtension物件搭配多個工作流程執行個體,InvalidOperationException就會擲回並出現下列訊息:If a DurableTimerExtension object is used with more than one workflow instance, an InvalidOperationException is thrown with the following message:

This TimerExtension has already been attached to a workflow instance.  

建構函式

DurableTimerExtension() DurableTimerExtension() DurableTimerExtension() DurableTimerExtension()

建立 DurableTimerExtension 類別的新執行個體。Creates a new instance of the DurableTimerExtension class.

方法

CancelTimer(Bookmark) CancelTimer(Bookmark) CancelTimer(Bookmark) CancelTimer(Bookmark)

移除計時器。Removes a timer.

(Inherited from TimerExtension)
Dispose() Dispose() Dispose() Dispose()

終止所有註冊的計時器。Terminates all registered timers.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetAdditionalExtensions() GetAdditionalExtensions() GetAdditionalExtensions() GetAdditionalExtensions()

傳回列舉值,這個列舉值會逐一查看計時器擴充的集合。Returns an enumerator that iterates over the collection of timer extensions.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
OnCancelTimer(Bookmark) OnCancelTimer(Bookmark) OnCancelTimer(Bookmark) OnCancelTimer(Bookmark)

從目前工作流程操作的註冊計時器表格移除計時器物件。Removes a timer object from the table of registered timers for the current workflow operation.

OnRegisterTimer(TimeSpan, Bookmark) OnRegisterTimer(TimeSpan, Bookmark) OnRegisterTimer(TimeSpan, Bookmark) OnRegisterTimer(TimeSpan, Bookmark)

加入計時器物件,其中包含目前工作流程操作之註冊計時器表格的指定時間範圍與書籤資訊。Adds a timer object that contains the specified time span and bookmark information to the table of registered timers for the current workflow operation.

RegisterTimer(TimeSpan, Bookmark) RegisterTimer(TimeSpan, Bookmark) RegisterTimer(TimeSpan, Bookmark) RegisterTimer(TimeSpan, Bookmark)

建立具有指定持續期間已相關聯的計時器。Creates a timer with the specified duration and associated.

(Inherited from TimerExtension)
SetInstance(WorkflowInstanceProxy) SetInstance(WorkflowInstanceProxy) SetInstance(WorkflowInstanceProxy) SetInstance(WorkflowInstanceProxy)

將指定的工作流程執行個體建立為目前的執行個體。Establishes the specified workflow instance as the current instance.

ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

適用於