편집

다음을 통해 공유


TimerEventSubscription Constructors

Definition

Initializes a new instance of the TimerEventSubscription class.

Overloads

TimerEventSubscription()

Initializes a new instance of the TimerEventSubscription class.

TimerEventSubscription(Guid, DateTime)

Initializes a new instance of the TimerEventSubscription class by using the specified Guid of a workflow instance and the specified expiration DateTime.

TimerEventSubscription(Guid, Guid, DateTime)

Initializes a new instance of the TimerEventSubscription class by using the specified subscription Id, the specified Guid of a workflow instance, and the specified expiration DateTime.

TimerEventSubscription()

Initializes a new instance of the TimerEventSubscription class.

protected:
 TimerEventSubscription();
protected TimerEventSubscription ();
Protected Sub New ()

Applies to

TimerEventSubscription(Guid, DateTime)

Initializes a new instance of the TimerEventSubscription class by using the specified Guid of a workflow instance and the specified expiration DateTime.

public:
 TimerEventSubscription(Guid workflowInstanceId, DateTime expiresAt);
public TimerEventSubscription (Guid workflowInstanceId, DateTime expiresAt);
new System.Workflow.Runtime.TimerEventSubscription : Guid * DateTime -> System.Workflow.Runtime.TimerEventSubscription
Public Sub New (workflowInstanceId As Guid, expiresAt As DateTime)

Parameters

workflowInstanceId
Guid

The Guid of the workflow instance associated with this subscription.

expiresAt
DateTime

A DateTime that represents the time in Universal Coordinated Time (UTC) at which the timer associated with this subscription is expected to expire.

Remarks

The following table shows the initial property values for an instance of TimerEventSubscription.

Property Value
QueueName A string representation of the system-supplied Guid for SubscriptionId.
SubscriptionId A system-supplied Guid.
WorkflowInstanceId The Guid of the workflow instance, specified by workflowInstanceId.
ExpiresAt The DateTime specified by expiresAt.

QueueName is initialized to a string representation of SubscriptionId by this constructor.

Applies to

TimerEventSubscription(Guid, Guid, DateTime)

Initializes a new instance of the TimerEventSubscription class by using the specified subscription Id, the specified Guid of a workflow instance, and the specified expiration DateTime.

public:
 TimerEventSubscription(Guid timerId, Guid workflowInstanceId, DateTime expiresAt);
public TimerEventSubscription (Guid timerId, Guid workflowInstanceId, DateTime expiresAt);
new System.Workflow.Runtime.TimerEventSubscription : Guid * Guid * DateTime -> System.Workflow.Runtime.TimerEventSubscription
Public Sub New (timerId As Guid, workflowInstanceId As Guid, expiresAt As DateTime)

Parameters

timerId
Guid

The Guid for this subscription.

workflowInstanceId
Guid

The Guid of the workflow instance for which this subscription was created.

expiresAt
DateTime

A DateTime that represents the time in Universal Coordinated Time (UTC) at which the timer for this subscription is expected to expire.

Remarks

The following table shows the initial property values for an instance of TimerEventSubscription.

Property Value
QueueName A string representation of the Guid specified by timerId.
SubscriptionId The Guid specified by timerId.
WorkflowInstanceId The Guid of the workflow instance, specified by workflowInstanceId.
ExpiresAt The DateTime specified by expiresAt.

QueueName is initialized to a string representation of timerId by this constructor.

Applies to