21 references to EnumerateDirectoryStatus
Microsoft.Build.Tasks.Core (21)
WindowsFileSystem.cs (10)
108
!(result.Status == WindowsNative.
EnumerateDirectoryStatus
.Success ||
109
result.Status == WindowsNative.
EnumerateDirectoryStatus
.SearchDirectoryNotFound))
133
WindowsNative.
EnumerateDirectoryStatus
findHandleOpenStatus = hr switch
135
WindowsNative.ErrorFileNotFound => WindowsNative.
EnumerateDirectoryStatus
.SearchDirectoryNotFound,
136
WindowsNative.ErrorPathNotFound => WindowsNative.
EnumerateDirectoryStatus
.SearchDirectoryNotFound,
137
WindowsNative.ErrorDirectory => WindowsNative.
EnumerateDirectoryStatus
.CannotEnumerateFile,
138
WindowsNative.ErrorAccessDenied => WindowsNative.
EnumerateDirectoryStatus
.AccessDenied,
139
_ => WindowsNative.
EnumerateDirectoryStatus
.UnknownError,
190
WindowsNative.
EnumerateDirectoryStatus
.Success,
197
WindowsNative.
EnumerateDirectoryStatus
.UnknownError,
WindowsNative.cs (11)
126
public readonly
EnumerateDirectoryStatus
Status;
134
public EnumerateDirectoryResult(string directory,
EnumerateDirectoryStatus
status, int nativeErrorCode)
146
get { 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
"/>
158
Debug.Assert(Status ==
EnumerateDirectoryStatus
.UnknownError);
163
/// Throws an exception if the native error code was corresponds to a known <see cref="
EnumerateDirectoryStatus
"/>
168
Debug.Assert(Status !=
EnumerateDirectoryStatus
.UnknownError &&
169
Status !=
EnumerateDirectoryStatus
.Success);
178
Debug.Assert(Status !=
EnumerateDirectoryStatus
.Success);
179
if (Status ==
EnumerateDirectoryStatus
.UnknownError)