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.
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
Re: DeleteDirectory error - showUI(5) is invalid
Dang, clearly I'm suffering brain damage. Hope it's not permanent.
Thanks!