Share via


OpenXmlPart.GetStream Method (FileMode, FileAccess) (Microsoft.Office.DocumentFormat.OpenXml.Packaging)

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

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

Namespace: Microsoft.Office.DocumentFormat.OpenXml.Packaging
Assembly: Microsoft.Office.DocumentFormat.OpenXml (in microsoft.office.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

  • mode
    The I/O mode in which to open the content stream.
  • access
    The access permissions to use in opening the content stream.

See Also

Reference

OpenXmlPart Class
OpenXmlPart Members
Microsoft.Office.DocumentFormat.OpenXml.Packaging Namespace