Version

TaskWorkingHourViolation Event

Fired when a task's StartDateTime or EndDateTime is set to a value which falls outside the working hour range when the TaskWorkingHourMode property is set to 'AutoAdjust'.
Syntax
'Declaration
 
Public Event TaskWorkingHourViolation As TaskWorkingHourViolationHandler
public event TaskWorkingHourViolationHandler TaskWorkingHourViolation
Event Data

The event handler receives an argument of type TaskWorkingHourViolationEventArgs containing data related to this event. The following TaskWorkingHourViolationEventArgs properties provide information specific to this event.

PropertyDescription
Action Returns or sets a value indicating the action to be taken in response to the event.
AdjustedDateTime Returns the date/time that will be used if the Action property is set to 'AdjustTask'.
DateTime Returns the date/time that caused the event to fire.
MessageBoxText (Inherited from Infragistics.Win.UltraWinSchedule.TaskPromptUserEventArgsBase)Returns or sets the text to be displayed in the MessageBox that appears to inform the user of the conflict. Setting this property to null or an empty string prevents the MessageBox from being displayed. Not used when the PromptUser property is set to false.
MessageBoxTitle (Inherited from Infragistics.Win.UltraWinSchedule.TaskPromptUserEventArgsBase)Returns or sets the title for the MessageBox that appears to inform the user of the conflict. Not used when the PromptUser property is set to false.
PromptUser (Inherited from Infragistics.Win.UltraWinSchedule.TaskPromptUserEventArgsBase)Returns or sets a value indicating whether the user should be prompted on what action to take.
Reason Returns a value indicating the reason the event occurred.
Task (Inherited from Infragistics.Win.UltraWinSchedule.TaskEventArgs)Returns the Task for which the event was fired.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also