WFTimeDuration

Description

A class that represents Time Duration with length, time unit, and business time.

Syntax

public class WFTimeDuration : Serializable

Constructors

public WFTimeDuration();
public WFTimeDuration(string length, WFTimeUnit unit, bool b);
public WFTimeDuration(int length, WFTimeUnit unit, bool b);

Namespace and Assembly

RequirementValue

Namespace

Ascentn.Workflow.Base

Assembly

Ascentn.Workflow.WFBase (in Ascentn.Workflow.WFBase.dll)

Properties

PropertyDescription

BusinessTime

Description:
Determines whether the system calculates the duration using your business time calendar.
Type
bool
Allowed Values:
  • True - The system calculates duration using business time.
  • False - The calculates the duration based on real time.

Length

Description:
Specifies the length of time duration.
Type
string
Allowed Values:
A valid time duration length.

Unit

Description:
Specifies the time unit.
Type
WFTimeUnit
Allowed Values:
  • hour
  • day
  • week
  • month
  • year