PackagePart.GetStreamCore(FileMode, FileAccess) 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.
When overridden in a derived class, returns the part content stream opened with a specified FileMode and FileAccess.
protected:
abstract System::IO::Stream ^ GetStreamCore(System::IO::FileMode mode, System::IO::FileAccess access);
protected abstract System.IO.Stream GetStreamCore (System.IO.FileMode mode, System.IO.FileAccess access);
protected abstract System.IO.Stream? GetStreamCore (System.IO.FileMode mode, System.IO.FileAccess access);
abstract member GetStreamCore : System.IO.FileMode * System.IO.FileAccess -> System.IO.Stream
Protected MustOverride Function GetStreamCore (mode As FileMode, access As FileAccess) As Stream
Parameters
- mode
- FileMode
The I/O mode in which to open the content stream.
- access
- FileAccess
The access permissions to use in opening the content stream.
Returns
The content data stream of the part.
Remarks
Applications should not call GetStreamCore directly, but instead should call GetStream.
Notes to Implementers
The derived GetStreamCore(FileMode, FileAccess) implementation should make no assumptions about the order or operations performed by the GetStream method that calls it.
Notes to Callers
The derived GetStreamCore(FileMode, FileAccess) method is called by the GetStream methods to open and return the part data stream based on the physical format implemented in the derived class.
By default, the ZipPackagePart subclass implementation of the abstract PackagePart class is provided and used. In the default operation, GetStream internally calls GetStreamCore(FileMode, FileAccess) of the ZipPackagePart class to open and return the part data stream from a ZIP file.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기