Friday 10 January 2014

Naming files, Paths, and Namespace

File and directori names
- Naming conventions
- Short vs. long names

Paths
- Fully qualified vs. relative paths
- Maximum path length limitation

Namespace
- Win32 file namespace
- Win32 Device namespace
- NT namespace

http://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29.aspx

In members that accept a path, the path can refer to a file or just a directory. The specified path can also refer to a relative path or a Universal Naming Convention (UNC) path for a server and share name. For example, all the following are acceptable paths:
  • "c:\\MyDir\\MyFile.txt" in C#, or "c:\MyDir\MyFile.txt" in Visual Basic.
  • "c:\\MyDir" in C#, or "c:\MyDir" in Visual Basic.
  • "MyDir\\MySubdir" in C#, or "MyDir\MySubDir" in Visual Basic.
  • "\\\\MyServer\\MyShare" in C#, or "\\MyServer\MyShare" in Visual Basic.

No comments:

Post a Comment