Compartilhar via


GraphicsStream.Read Method (Type)

[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 a value 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 _
) As ValueType
'Usage
Dim instance As GraphicsStream
Dim returnType As Type
Dim returnValue As ValueType

returnValue = instance.Read(returnType)
public ValueType Read(
    Type returnType
)
public:
ValueType^ Read(
    Type^ returnType
)
member Read : 
        returnType:Type -> ValueType 

Parameters

Return Value

Type: System.ValueType
A ValueType 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

returnType is invalid.

.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