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