Compartilhar via


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

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

Reads a sequence of bytes from the current stream into an array of the specified type 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 Function Read ( _
    returnType As Type, _
    ParamArray ranks As Integer() _
) As Array
'Usage
Dim instance As GraphicsStream
Dim returnType As Type
Dim ranks As Integer()
Dim returnValue As Array

returnValue = instance.Read(returnType, _
    ranks)
public Array Read(
    Type returnType,
    params int[] ranks
)
public:
Array^ Read(
    Type^ returnType, 
    ... array<int>^ ranks
)
member Read : 
        returnType:Type * 
        ranks:int[] -> Array 

Parameters

  • ranks
    Type: array<System.Int32[]
    An array of Int32 values that represent the size of each dimension of the returning array.

Return Value

Type: System.Array
An Array of type returnType that contains the data read from the stream buffer.

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, the stream buffer is not large enough to hold the requested data, or ranks has more than three dimensions.

.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