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.
- count
Type: System. . :: . .Int32
Specifies the number of bytes to be read.
Return Value
Type: System. . :: . .Int32
The number of bytes read.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.