/// <summary>
 /// Deletes a subfolder from the parent folder. Not available to Task Scheduler 1.0.
 /// </summary>
 /// <param name="subFolderName">The name of the subfolder to be removed. The root task folder is specified with a backslash (\). This parameter can be a relative path to the folder you want to delete. An example of a task folder path, under the root task folder, is \MyTaskFolder. The '.' character cannot be used to specify the current task folder and the '..' characters cannot be used to specify the parent task folder in the path.</param>
 public void DeleteFolder(string subFolderName)
 {
     if (v2Folder != null)
     {
         v2Folder.DeleteFolder(subFolderName, 0);
     }
     else
     {
         throw new NotV1SupportedException();
     }
 }
 /// <summary>
 /// Deletes a subfolder from the parent folder. Not available to Task Scheduler 1.0.
 /// </summary>
 /// <param name="subFolderName">The name of the subfolder to be removed. The root task folder is specified with a backslash (\). This parameter can be a relative path to the folder you want to delete. An example of a task folder path, under the root task folder, is \MyTaskFolder. The '.' character cannot be used to specify the current task folder and the '..' characters cannot be used to specify the parent task folder in the path.</param>
 /// <param name="exceptionOnNotExists">Set this value to false to avoid having an exception called if the folder does not exist.</param>
 /// <exception cref="NotV1SupportedException">Not supported under Task Scheduler 1.0.</exception>
 public void DeleteFolder(string subFolderName, bool exceptionOnNotExists = true)
 {
     if (v2Folder != null)
     {
         try
         {
             v2Folder.DeleteFolder(subFolderName, 0);
         }
         catch (System.IO.FileNotFoundException)
         {
             if (exceptionOnNotExists)
             {
                 throw;
             }
         }
     }
     else
     {
         throw new NotV1SupportedException();
     }
 }