20 references to MaxPath
mscorlib (20)
system\io\isolatedstorage\isolatedstoragefile.cs (2)
2880Contract.Assert(m_RootDir[m_nRootDir].Length < Path.MaxPath); 2936Contract.Assert(m_Root.Length < Path.MaxPath);
system\io\path.cs (5)
384return NormalizePath(path, fullCheck, MaxPath, expandShortPaths: expandShortPaths); 537if (path.Length + 1 <= MaxPath) { 538char* m_arrayPtr = stackalloc char[MaxPath]; 539newBuffer = new PathHelper(m_arrayPtr, MaxPath); 541newBuffer = new PathHelper(path.Length + Path.MaxPath, maxPathLength);
system\io\pathhelper.cs (13)
67Contract.Requires(length == Path.MaxPath); 73this.m_maxPath = Path.MaxPath; 157char* finalBuffer = stackalloc char[Path.MaxPath + 1]; 158int result = Win32Native.GetFullPathName(m_arrayPtr, Path.MaxPath + 1, finalBuffer, IntPtr.Zero); 163if (result > Path.MaxPath) { 170if (result >= Path.MaxPath) 173Contract.Assert(result < Path.MaxPath, "did we accidently remove a PathTooLongException check?"); 178else if (result < Path.MaxPath) { 236char* shortFileNameBuffer = stackalloc char[Path.MaxPath + 1]; 238int r = Win32Native.GetLongPathName(buffer, shortFileNameBuffer, Path.MaxPath); 243if (r >= Path.MaxPath) 277if (tempName.Length > Path.MaxPath) { 331if (Length + lenSavedName >= Path.MaxPath)