Compartir a través de


GraphicsStream.Read Method (array<Byte[], Int32, Int32)

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

Reads the specified number of bytes from the current stream into the specified byte array, starting at the specified offset in the array, and advances the position within the stream by the number of bytes read.

Namespace:  Microsoft.WindowsMobile.DirectX
Assembly:  Microsoft.WindowsMobile.DirectX (in Microsoft.WindowsMobile.DirectX.dll)

Syntax

'Declaration
Public Overrides Function Read ( _
    buffer As Byte(), _
    offset As Integer, _
    count As Integer _
) As Integer
'Usage
Dim instance As GraphicsStream
Dim buffer As Byte()
Dim offset As Integer
Dim count As Integer
Dim returnValue As Integer

returnValue = instance.Read(buffer, offset, _
    count)
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 

Parameters

  • count
    Type: System.Int32
    The number of bytes to read into buffer.

Return Value

Type: System.Int32
The number of bytes read into buffer from the graphics stream.

Exceptions

Exception Condition
NotSupportedException

Unable to read from the stream buffer, or there is no data to read.

ArgumentException

One of the parameters is invalid, or the stream buffer is not large enough to hold the requested data.

.NET Framework Security

Platforms

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Compact Framework

Supported in: 3.5, 2.0

See Also

Reference

GraphicsStream Class

GraphicsStream Members

Read Overload

Microsoft.WindowsMobile.DirectX Namespace