MemoryStream.WriteTo(Stream) 메서드
정의
다른 스트림에 이 메모리 스트림의 전체 내용을 씁니다.Writes the entire contents of this memory stream to another stream.
public:
virtual void WriteTo(System::IO::Stream ^ stream);
public virtual void WriteTo (System.IO.Stream stream);
abstract member WriteTo : System.IO.Stream -> unit
override this.WriteTo : System.IO.Stream -> unit
Public Overridable Sub WriteTo (stream As Stream)
매개 변수
- stream
- Stream
이 메모리 스트림을 쓸 스트림입니다.The stream to write this memory stream to.
예외
stream
이(가) null
인 경우stream
is null
.
현재 스트림이나 대상 스트림이 닫혀 있는 경우The current or target stream is closed.
설명
현재 스트림이 열려 있으면이 메서드는 Stream.Write 이 스트림의 내부 버퍼에서를 호출 하는 것과 같습니다.When the current stream is open, this method is equivalent to calling Stream.Write on the underlying buffer of this stream.