Click or drag to resize

PipeStreamReadTimeout Property

Gets or sets the time, in milliseconds, to wait for a read operation to complete.

Namespace:  WinUsbNet
Assembly:  WinUsbNet (in WinUsbNet.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public override int ReadTimeout { get; set; }

Property Value

Type: Int32

The time, in milliseconds, to wait for a read operation to complete. A value of zero means never time out.

Exceptions
ExceptionCondition
IOExceptionThe UsbDevice is not open.
NotSupportedExceptionThe PipeStream does not support reading.
Remarks

The initial value of ReadTimeout is set to the value of the DefaultReadTimeout property on the parent UsbDevice at the time its Open method is called.

If a read operation times out, Win32Exception is thrown with NativeErrorCode set to 0x00000079.

See Also