DataPart.GetStream Method (FileMode, FileAccess)

Returns the part content stream opened with a specified FileMode and FileAccess.

Namespace:  DocumentFormat.OpenXml.Packaging
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
Public Function GetStream ( _
    mode As FileMode, _
    access As FileAccess _
) As Stream
'Usage
Dim instance As DataPart
Dim mode As FileMode
Dim access As FileAccess
Dim returnValue As Stream

returnValue = instance.GetStream(mode, _
    access)
public Stream GetStream(
    FileMode mode,
    FileAccess access
)

Parameters

Return Value

Type: System.IO.Stream
The content stream of the part.

See Also

Reference

DataPart Class

DataPart Members

GetStream Overload

DocumentFormat.OpenXml.Packaging Namespace