Language

SafeFileHandle.IsAsync Property

Definition

Gets a value that indicates whether the handle is configured for asynchronous I/O.

public:
 property bool IsAsync { bool get(); };
public bool IsAsync { get; }
member this.IsAsync : bool
Public ReadOnly Property IsAsync As Boolean

Property Value

true if the handle is configured for overlapped I/O on Windows. On Unix, true if the handle was configured as asynchronous in .NET 10 and earlier or has the O_NONBLOCK flag set in .NET 11 and later; otherwise, false.

Remarks

On Unix, starting in .NET 11, this property reflects whether the file descriptor has the O_NONBLOCK flag set. Regular files return false, even if opened with FileOptions.Asynchronous.

Applies to