TriggerStartBoundary Property

Gets or sets the date and time when the trigger is activated.

Definition

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
public DateTime StartBoundary { get; set; }

Property Value

DateTime

Remarks

Version 1 (1.1 on all systems prior to Vista) of the native library only allows for DateTime values where the Kind is unspecified. If the DateTime value Kind is Local then it will be used as is. If the DateTime value Kind is Utc then it will be converted to the local time and then used.

Version 2 (1.2 or higher) of the native library only allows for all Kind values. However, the user interface and ToString methods will always show the time translated to local time. The library makes every attempt to maintain the Kind value. When using the UI elements provided in the TaskSchedulerEditor library, the "Synchronize across time zones" checkbox will be checked if the Kind is Local or Utc. If the Kind is Unspecified and the user selects the checkbox, the Kind will be changed to Utc and the time adjusted from the value displayed as the local time.

Under Version 2, when converting the string used in the native library for this value (ITrigger.Startboundary) this library will behave as follows:

  • YYYY-MM-DDTHH:MM:SS format uses DateTimeKind.Unspecified and the time specified.
  • YYYY-MM-DDTHH:MM:SSZ format uses DateTimeKind.Utc and the time specified as the GMT time.
  • YYYY-MM-DDTHH:MM:SS±HH:MM format uses DateTimeKind.Local and the time specified in that time zone.

See Also