OpenFileDialog: difference between file names and SafeFileNames names

For OpenFileDialog ,
What are the Differences Between SafeFileNames and FileNames

and why SafeFileNamesis there safe?

+5
source share
2 answers

The answer is right on the pages you linked. The "safe" file name does not include the path. Just a file name and extension. The usual file name includes the full path.

SafeFileName is safe because it does not reveal the directory structure of your computer.

+6
source

, FileNames FileIOPermissionAccess.AllAccess , . , , , FileNames, .

SafeFileNames " , ". "" .

+3

All Articles