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

Requirement Value

Namespace

Ascentn.Workflow.Base

Assembly

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

Properties

Property Description

BusinessTime

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

Length

Function:
Specifies the length of time duration.
Type
string
Accepted Values:
A valid time duration length.

Unit

Function:
Specifies the time unit.
Type
WFTimeUnit
Accepted Values:
  • hour
  • day
  • week
  • month
  • year