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