62 references to TopDirectoryOnly
mscorlib (59)
system\io\directory.cs (29)
601
return InternalGetFiles(path, "*", SearchOption.
TopDirectoryOnly
);
617
return InternalGetFiles(path, searchPattern, SearchOption.
TopDirectoryOnly
);
630
if ((searchOption != SearchOption.
TopDirectoryOnly
) && (searchOption != SearchOption.AllDirectories))
646
Contract.Requires(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.
TopDirectoryOnly
);
658
Contract.Requires(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.
TopDirectoryOnly
);
673
return InternalGetDirectories(path, "*", SearchOption.
TopDirectoryOnly
);
689
return InternalGetDirectories(path, searchPattern, SearchOption.
TopDirectoryOnly
);
702
if ((searchOption != SearchOption.
TopDirectoryOnly
) && (searchOption != SearchOption.AllDirectories))
718
Contract.Requires(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.
TopDirectoryOnly
);
731
Contract.Requires(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.
TopDirectoryOnly
);
747
return InternalGetFileSystemEntries(path, "*", SearchOption.
TopDirectoryOnly
);
763
return InternalGetFileSystemEntries(path, searchPattern, SearchOption.
TopDirectoryOnly
);
776
if ((searchOption != SearchOption.
TopDirectoryOnly
) && (searchOption != SearchOption.AllDirectories))
790
Contract.Requires(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.
TopDirectoryOnly
);
804
Contract.Requires(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.
TopDirectoryOnly
);
829
Contract.Requires(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.
TopDirectoryOnly
);
846
return InternalEnumerateDirectories(path, "*", SearchOption.
TopDirectoryOnly
);
859
return InternalEnumerateDirectories(path, searchPattern, SearchOption.
TopDirectoryOnly
);
870
if ((searchOption != SearchOption.
TopDirectoryOnly
) && (searchOption != SearchOption.AllDirectories))
883
Contract.Requires(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.
TopDirectoryOnly
);
897
return InternalEnumerateFiles(path, "*", SearchOption.
TopDirectoryOnly
);
911
return InternalEnumerateFiles(path, searchPattern, SearchOption.
TopDirectoryOnly
);
922
if ((searchOption != SearchOption.
TopDirectoryOnly
) && (searchOption != SearchOption.AllDirectories))
936
Contract.Requires(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.
TopDirectoryOnly
);
951
return InternalEnumerateFileSystemEntries(path, "*", SearchOption.
TopDirectoryOnly
);
965
return InternalEnumerateFileSystemEntries(path, searchPattern, SearchOption.
TopDirectoryOnly
);
976
if ((searchOption != SearchOption.
TopDirectoryOnly
) && (searchOption != SearchOption.AllDirectories))
990
Contract.Requires(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.
TopDirectoryOnly
);
1001
Contract.Requires(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.
TopDirectoryOnly
);
system\io\directoryinfo.cs (24)
338
return InternalGetFiles(searchPattern, SearchOption.
TopDirectoryOnly
);
349
if ((searchOption != SearchOption.
TopDirectoryOnly
) && (searchOption != SearchOption.AllDirectories))
363
Contract.Requires(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.
TopDirectoryOnly
);
375
return InternalGetFiles("*", SearchOption.
TopDirectoryOnly
);
383
return InternalGetDirectories("*", SearchOption.
TopDirectoryOnly
);
396
return InternalGetFileSystemInfos(searchPattern, SearchOption.
TopDirectoryOnly
);
407
if ((searchOption != SearchOption.
TopDirectoryOnly
) && (searchOption != SearchOption.AllDirectories))
421
Contract.Requires(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.
TopDirectoryOnly
);
434
return InternalGetFileSystemInfos("*", SearchOption.
TopDirectoryOnly
);
448
return InternalGetDirectories(searchPattern, SearchOption.
TopDirectoryOnly
);
460
if ((searchOption != SearchOption.
TopDirectoryOnly
) && (searchOption != SearchOption.AllDirectories))
475
Contract.Requires(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.
TopDirectoryOnly
);
486
return InternalEnumerateDirectories("*", SearchOption.
TopDirectoryOnly
);
497
return InternalEnumerateDirectories(searchPattern, SearchOption.
TopDirectoryOnly
);
506
if ((searchOption != SearchOption.
TopDirectoryOnly
) && (searchOption != SearchOption.AllDirectories))
518
Contract.Requires(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.
TopDirectoryOnly
);
527
return InternalEnumerateFiles("*", SearchOption.
TopDirectoryOnly
);
538
return InternalEnumerateFiles(searchPattern, SearchOption.
TopDirectoryOnly
);
547
if ((searchOption != SearchOption.
TopDirectoryOnly
) && (searchOption != SearchOption.AllDirectories))
559
Contract.Requires(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.
TopDirectoryOnly
);
568
return InternalEnumerateFileSystemInfos("*", SearchOption.
TopDirectoryOnly
);
579
return InternalEnumerateFileSystemInfos(searchPattern, SearchOption.
TopDirectoryOnly
);
588
if ((searchOption != SearchOption.
TopDirectoryOnly
) && (searchOption != SearchOption.AllDirectories))
600
Contract.Requires(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.
TopDirectoryOnly
);
system\io\filesystemenumerable.cs (6)
198
Contract.Requires(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.
TopDirectoryOnly
);
286
empty = searchData.searchOption == SearchOption.
TopDirectoryOnly
;
291
if (searchData.searchOption == SearchOption.
TopDirectoryOnly
)
394
if (searchData.searchOption == SearchOption.
TopDirectoryOnly
)
414
Contract.Assert(searchData.searchOption != SearchOption.
TopDirectoryOnly
, "should not reach this code path if searchOption == TopDirectoryOnly");
495
if (searchData.searchOption == SearchOption.
TopDirectoryOnly
)
System.Data.Entity (1)
System\Data\Metadata\MetadataArtifactLoaderCompositeFile.cs (1)
268
SearchOption.
TopDirectoryOnly
System.Web (2)
Configuration\BrowserCapabilitiesCodeGenerator.cs (2)
650
files = rootDirectory.GetFiles("*.browser", SearchOption.
TopDirectoryOnly
);
654
files = subDirectories[i].GetFiles("*.browser", SearchOption.
TopDirectoryOnly
);