SafeFileHandle.IsAsync Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.