DurableTimerExtension Class

.NET Framework (current version)
 

Represents an activity timer extension that can be persisted.

Namespace:   System.Activities.Statements
Assembly:  System.Activities (in System.Activities.dll)

System::Object
  System.Activities.Statements::TimerExtension
    System.Activities.Statements::DurableTimerExtension

public ref class DurableTimerExtension : TimerExtension, IWorkflowInstanceExtension, 
	IDisposable

NameDescription
System_CAPS_pubmethodDurableTimerExtension()

Creates a new instance of the DurableTimerExtension class.

NameDescription
System_CAPS_pubmethodCancelTimer(Bookmark^)

Removes a timer.(Inherited from TimerExtension.)

System_CAPS_pubmethodDispose()

Terminates all registered timers.

System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetAdditionalExtensions()

Returns an enumerator that iterates over the collection of timer extensions.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodOnCancelTimer(Bookmark^)

Removes a timer object from the table of registered timers for the current workflow operation.(Overrides TimerExtension::OnCancelTimer(Bookmark^).)

System_CAPS_protmethodOnRegisterTimer(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.(Overrides TimerExtension::OnRegisterTimer(TimeSpan, Bookmark^).)

System_CAPS_pubmethodRegisterTimer(TimeSpan, Bookmark^)

Creates a timer with the specified duration and associated.(Inherited from TimerExtension.)

System_CAPS_pubmethodSetInstance(WorkflowInstanceProxy^)

Establishes the specified workflow instance as the current instance.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

A DurableTimerExtension object can only be associated with a single workflow instance. 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.

.NET Framework
Available since 4.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: