SafeFileHandle.IsInvalid Property

Definition

Gets a value that indicates whether the handle is invalid.

C#
public override bool IsInvalid { [System.Security.SecurityCritical] get; }
C#
public override bool IsInvalid { get; }

Property Value

true if the handle is not valid; otherwise, false.

Attributes

Applies to

Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 1.3, 1.4, 1.6, 2.1
UWP 10.0