GetStream Method

GetStream Method

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Returns the item's content stream.

Applies To

IItem Interface

Type Library

Microsoft CDO for Exchange 2000 Library

DLL Implemented In

CDOEX.DLL

Syntax

[Visual Basic]Function GetStream
() As ADODB.Stream

[C++]HRESULT GetStream (     _Stream** pVal );

Parameters

  • pVal
    Returns a reference to the _Stream Interface of the item.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

The GetStream method returns a _Stream object reference on a Microsoft ActiveX Data Objects (ADO) Stream object containing the content stream for the item. Only items that are of a stream-based content class have associated streams. If you call GetStream on a collection-based item, an error is raised.

If you modify the content in the returned Stream object, you commit these changes by calling the _Stream::Flush method. If the Flush method is not called, changes are lost when the Stream object is destroyed.

Send us your feedback about the Microsoft Exchange Server 2003 SDK.

Build: June 2007 (2007.618.1)

© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.