Enum InaccessibleSearchBehavior
Specifies the behavior when encountering inaccessible directories during searches.
Namespace: Singulink.IO
Assembly: Singulink.IO.FileSystem.dll
Syntax
public enum InaccessibleSearchBehavior
Fields
| Name | Description |
|---|---|
| IgnoreAll | Indicates that all unauthorized accesses should be ignored, including the directory being searched. |
| ThrowForAll | Indicates that UnauthorizedIOAccessException should be thrown if any inaccessible directories are encountered during the search. |
| ThrowForSearchDir | Indicates that an UnauthorizedIOAccessException should be thrown if the directory being searched is inaccessible, but inaccessible child directories should be ignored. This is the default behavior as it has the least surprising behavior, but it incurs an extra file system call when the search yields no matches. |