Exception | Description |
---|---|
System.InvalidOperationException | Thrown when the property's value is changed for a root-level task. |
A milestone task is defined as a task of zero duration that marks a noteworthy event in the parent task's timeline.
A root-level task, i.e., a task with no parent, cannot be designated as a milestone; attempting to set the Milestone property to true for a root-level task will cause an exception to be thrown.
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