Results 1 to 3 of 3

Thread: DeleteDirectory error - showUI(5) is invalid

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2011
    Posts
    85

    DeleteDirectory error - showUI(5) is invalid

    Using the following command
    Code:
            My.Computer.FileSystem.DeleteDirectory("c:\Tmp\TestFiles", _
                                                   FileIO.DeleteDirectoryOption.DeleteAllContents, _
                                                   FileIO.RecycleOption.SendToRecycleBin)
    I get an error saying
    "The value of argument 'showUI(5) is invalid for Enum type 'UIOption'. Parameter name: showUI"
    I'm using the first override set of parameters (1 of 3) and using Intellisense to select the parameters. I see that the showUI parameter exists in the second and third overrides but not in the first so don't understand why I'm getting this error. Is this a bug in VB or maybe my version is corrupt?

    This isn't a huge deal since the second and third overrides seem to work so I can use them instead. Just wondering what the problem is.

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,422

    Re: DeleteDirectory error - showUI(5) is invalid

    the 1st overload has an onDirectoryNotEmpty parameter but not a RecycleOption parameter.
    there is no overload that contains both of those parameters

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2011
    Posts
    85

    Re: DeleteDirectory error - showUI(5) is invalid

    Dang, clearly I'm suffering brain damage. Hope it's not permanent.
    Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width