MemoryStream.WriteTo(Stream) 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.
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)
Parameters
- stream
- Stream
The stream to write this memory stream to.
Exceptions
stream
is null
.
The current or target stream is closed.
Remarks
When the current stream is open, this method is equivalent to calling Stream.Write on the underlying buffer of this stream.
Applies to
See also
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.