OpenXmlPart.GetStream Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetStream() |
Returns the part content data stream. |
GetStream(FileMode) |
Returns the content stream that was opened using a specified I/O FileMode. |
GetStream(FileMode, FileAccess) |
Returns the part content stream that was opened using a specified FileMode and FileAccess. |
GetStream()
Returns the part content data stream.
public System.IO.Stream GetStream ();
member this.GetStream : unit -> System.IO.Stream
Public Function GetStream () As Stream
Returns
The content data stream for the part.
Applies to
GetStream(FileMode)
Returns the content stream that was opened using a specified I/O FileMode.
public System.IO.Stream GetStream (System.IO.FileMode mode);
member this.GetStream : System.IO.FileMode -> System.IO.Stream
Public Function GetStream (mode As FileMode) As Stream
Parameters
- mode
- FileMode
The I/O mode to be used to open the content stream.
Returns
The content stream of the part.
Applies to
GetStream(FileMode, FileAccess)
Returns the part content stream that was opened using a specified FileMode and FileAccess.
public System.IO.Stream GetStream (System.IO.FileMode mode, System.IO.FileAccess access);
member this.GetStream : System.IO.FileMode * System.IO.FileAccess -> System.IO.Stream
Public Function GetStream (mode As FileMode, access As FileAccess) As Stream
Parameters
- mode
- FileMode
The I/O mode to be used to open the content stream.
- access
- FileAccess
The access permissions to be used to open the content stream.
Returns
The content stream of the part.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應