CanCreateFile(String,String,Boolean) Method
Tests for the ability to create (write) the specified file
Parameters
- fileName
- Full physical path of the file to attempt to create.
- fileContent
- Text content to write to the file.
- createDirectoryStructure
- Whether to try to create directory structure if it does not exist?
Return Value
Exception that occurred during the test, or null if the test succeeded.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2