Поделиться через


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

OpenXmlPart Class

OpenXmlPart Members

GetStream Overload

DocumentFormat.OpenXml.Packaging Namespace