EnumerationOptions.IgnoreInaccessible Property

Definition

Gets or sets a value that indicates whether to skip files or directories when access is denied (for example, UnauthorizedAccessException or SecurityException).

public bool IgnoreInaccessible { get; set; }

Property Value

true to skip innacessible files or directories; otherwise, false. The default is true.

Applies to

Product Versions
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.1