Writes the entire contents of this MemoryStream to another stream.
[Visual Basic] Overridable Public Sub WriteTo( _ ByVal stream As Stream _ ) [C#] public virtual void WriteTo( Stream stream ); [C++] public: virtual void WriteTo( Stream* stream ); [JScript] public function WriteTo( stream : Stream );
Exception Type | Condition |
---|---|
ArgumentNullException | stream is null. |
MemoryStream Class | MemoryStream Members | System.IO Namespace