Specifies that an InvalidOperationException will be thrown if an attempt is made to attach a child task to the created task.