Obtains read access, via an input stream, to the content data of a ContentTransfer content element associated with this document or annotation. If content data is not present in the object’s property cache, it will be fetched from the server. The Content Engine will not automatically close the stream after access has finished; unless you want the stream to remain open, your application should close the stream after it has finished reading the content data. An error occurs if the element parameter specifies an invalid index, no content elements exist on this document or annotation, or the content element is not a ContentTransfer object.


Namespace: FileNet.Api.Core
Assembly: FileNet.Api (in filenet.api.dll)

Syntax

Visual Basic (Declaration)
Function AccessContentStream( _ 
   ByVal element As Integer _ 
) As Stream
C#
Stream AccessContentStream(
   int element
)
C++
Stream AccessContentStream(
   int element
) abstract 
J#
Stream AccessContentStream(
   int element
)
JScript
function AccessContentStream(
   element : int
) : Stream

Parameters

element
An integer specifying the index of the content element to which the content data belongs.

Return Value

A Stream object for reading content data.

See Also