Read Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Reads from a USB stream.

Namespace:  Microsoft.SPOT.Hardware.UsbClient
Assembly:  Microsoft.SPOT.Hardware.Usb (in Microsoft.SPOT.Hardware.Usb.dll)

Syntax

'Declaration
Public Overrides Function Read ( _
    buffer As Byte(), _
    offset As Integer, _
    count As Integer _
) As Integer
public override int Read(
    byte[] buffer,
    int offset,
    int count
)
public:
virtual int Read(
    array<unsigned char>^ buffer, 
    int offset, 
    int count
) override
abstract Read : 
        buffer:byte[] * 
        offset:int * 
        count:int -> int 
override Read : 
        buffer:byte[] * 
        offset:int * 
        count:int -> int 
public override function Read(
    buffer : byte[], 
    offset : int, 
    count : int
) : int

Parameters

  • buffer
    Type: array<System. . :: . .Byte> [] () [] []
    Specifies the array that holds the bytes read from the USB stream.
  • offset
    Type: System. . :: . .Int32
    Contains the starting offset in the buffer parameter where the first byte read is stored.

Return Value

Type: System. . :: . .Int32
The number of bytes read.

.NET Framework Security

See Also

Reference

UsbStream Class

Microsoft.SPOT.Hardware.UsbClient Namespace