Share via


GraphicsStream.Read(Type) Method (Microsoft.DirectX)

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

Definition

Visual Basic Public Function Read( _
    ByVal returnType As TypeLeave Site _
) As ValueTypeLeave Site
C# public ValueTypeLeave Site Read(
    TypeLeave Site returnType
);
C++ public:
ValueTypeLeave SiteRead(
    TypeLeave SitereturnType
);
JScript public function Read(
    returnType : TypeLeave Site
) : ValueTypeLeave Site;

Parameters

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

Return Value

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

Remarks

Exceptions

NotSupportedExceptionLeave Site

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

ArgumentExceptionLeave 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.