21 references to EnumerateDirectoryStatus
Microsoft.Build.Tasks.Core (21)
WindowsFileSystem.cs (10)
108!(result.Status == WindowsNative.EnumerateDirectoryStatus.Success || 109result.Status == WindowsNative.EnumerateDirectoryStatus.SearchDirectoryNotFound)) 133WindowsNative.EnumerateDirectoryStatus findHandleOpenStatus = hr switch 135WindowsNative.ErrorFileNotFound => WindowsNative.EnumerateDirectoryStatus.SearchDirectoryNotFound, 136WindowsNative.ErrorPathNotFound => WindowsNative.EnumerateDirectoryStatus.SearchDirectoryNotFound, 137WindowsNative.ErrorDirectory => WindowsNative.EnumerateDirectoryStatus.CannotEnumerateFile, 138WindowsNative.ErrorAccessDenied => WindowsNative.EnumerateDirectoryStatus.AccessDenied, 139_ => WindowsNative.EnumerateDirectoryStatus.UnknownError, 190WindowsNative.EnumerateDirectoryStatus.Success, 197WindowsNative.EnumerateDirectoryStatus.UnknownError,
WindowsNative.cs (11)
126public readonly EnumerateDirectoryStatus Status; 134public EnumerateDirectoryResult(string directory, EnumerateDirectoryStatus status, int nativeErrorCode) 146get { return Status == EnumerateDirectoryStatus.Success; } 151/// This is allowed when <see cref="Status"/> is <see cref="EnumerateDirectoryStatus.UnknownError"/>. 154/// This is a good <c>default:</c> case when switching on every possible <see cref="EnumerateDirectoryStatus"/> 158Debug.Assert(Status == EnumerateDirectoryStatus.UnknownError); 163/// Throws an exception if the native error code was corresponds to a known <see cref="EnumerateDirectoryStatus"/> 168Debug.Assert(Status != EnumerateDirectoryStatus.UnknownError && 169Status != EnumerateDirectoryStatus.Success); 178Debug.Assert(Status != EnumerateDirectoryStatus.Success); 179if (Status == EnumerateDirectoryStatus.UnknownError)