DurableTimerExtension 類別

定義

表示可繼續存在的活動計時器擴充。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
繼承
DurableTimerExtension
實作

備註

DurableTimerExtension物件只能與單一工作流程實例相關聯。A DurableTimerExtension object can only be associated with a single workflow instance. 如果物件與一個以上的工作流程實例搭配使用InvalidOperationException ,則會擲回,並顯示下列訊息: DurableTimerExtensionIf 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 類別的新執行個體。Creates a new instance of the DurableTimerExtension class.

方法

CancelTimer(Bookmark)

移除計時器。Removes a timer.

(繼承來源 TimerExtension)
Dispose()

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

Equals(Object)

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

(繼承來源 Object)
GetAdditionalExtensions()

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

GetHashCode()

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

(繼承來源 Object)
GetType()

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

(繼承來源 Object)
MemberwiseClone()

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

(繼承來源 Object)
OnCancelTimer(Bookmark)

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

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)

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

(繼承來源 TimerExtension)
SetInstance(WorkflowInstanceProxy)

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

ToString()

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

(繼承來源 Object)

適用於