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
- mode
Type: System.IO.FileMode
The I/O mode in which to open the content stream.
- access
Type: System.IO.FileAccess
The access permissions to use in opening the content stream.
Return Value
Type: System.IO.Stream
The content stream of the part.