could not be converted 

In the Java language, this method marks the file represented by the abstract path name to be deleted when the Java virtual machine exits.

In the .NET Framework, there is no direct equivalent.

To correct this error

  • Store the name of the file in a variable, and delete it explicitly when your application closes.

See Also