Microsoft DirectX 9.0 SDK Update (October 2004)

GraphicsStream.Read Method

Language:

Note: This documentation is preliminary and is subject to change.

Reads from the current stream and advances the position within it by the number of bytes read.

Definition

Visual Basic .NET Public Function Read( _
    ByVal returnType As Type _
) As ValueType
C# public ValueType Read(
    Type returnType
);
Managed C++ public: ValueType* Read(
    Type *returnType
);
JScript .NET public function Read(
    returnType : Type
) : ValueType;

Parameters

returnType System.Type. Value that indicates the Type Leave Site of the returned array.

Return Value

System.ValueType . A ValueType Leave Site of type returnType that contains the data read from the stream buffer.

Remarks

Exceptions
NotSupportedException Leave Site Unable to read from the stream buffer, or there is no data to read.
ArgumentException Leave Site One of the parameters is invalid, the stream buffer is not large enough to hold the requested data, or ranks is greater than three.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center