directory class : Delete() method

Description

Deletes this directory if it is empty.

Syntax

directoryInstance.Delete()

Arguments

None

Return value

None

Sample code

1:

directory dir = new directory("c:\somewhere...");

2:

dir.Delete();

Notes

It's a wrapper of the System.IO.DirectoryInfo.Delete() method.

Links for reference

Copyright © Cooker All rights reserved.