PackagePart.GetStreamCore(FileMode, FileAccess) 메서드

정의

파생 클래스에서 재정의되는 경우 지정된 FileModeFileAccess로 열린 파트 콘텐츠 스트림을 반환합니다.

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

매개 변수

mode
FileMode

콘텐츠 스트림을 열 I/O 모드입니다.

access
FileAccess

콘텐츠 스트림을 열 때 사용하는 액세스 권한입니다.

반환

Stream

파트의 콘텐츠 데이터 스트림입니다.

설명

애플리케이션을 호출 하지 않아야 GetStreamCore 직접 대신 호출 해야 하지만 GetStream합니다.

구현자 참고

파생된 GetStreamCore(FileMode, FileAccess) 구현은 호출하는 메서드에서 수행하는 GetStream 순서 또는 작업에 대해 가정하지 않아야 합니다.

호출자 참고

파생 메서드는 파생 클래스에서 GetStream 구현된 GetStreamCore(FileMode, FileAccess) 실제 형식에 따라 파트 데이터 스트림을 열고 반환하기 위해 메서드에 의해 호출됩니다.

기본적으로 추상 PackagePart 클래스의 ZipPackagePart 하위 클래스 구현이 제공되고 사용됩니다. 기본 작업 GetStream 에서 내부적으로 클래스를 ZipPackagePart 호출 GetStreamCore(FileMode, FileAccess) 하여 ZIP 파일에서 파트 데이터 스트림을 열고 반환합니다.

적용 대상