Share via


CComVariant::ReadFromStream

Sets the underlying VARIANT to the VARIANT contained in the specified stream.

HRESULT ReadFromStream( 
   IStream* pStream  
);

Parameters

  • pStream
    [in] A pointer to the IStream interface on the stream containing the data.

Return Value

A standard HRESULT value.

Remarks

ReadToStream requires a previous call to WriteToStream.

Requirements

Header: atlcomcli.h

See Also

Reference

CComVariant Class