[]
Closes the task dialog by simulating a click on the Cancel button.
public void Close()
Public Sub Close()
If the AllowCancel property is set to False and there is no Cancel button in the dialog, the method simulates a click on the Close button.