Dart.PowerTCP.EmailValidation Namespace > EnhancedStream Class > WriteTo Method : WriteTo(Stream) Method |
Writes all of the data contained in this Stream to a destination Stream.
[Visual Basic]
Overloads Public Sub WriteTo( _
ByVal destination As Stream _
)
[C#]
public void WriteTo(
Stream destination
);
[C++]
public: void WriteTo(
Stream* destination
)
[C++/CLI]
public:
void WriteTo(
Stream^ destination
)
Exception | Description |
---|---|
NullReferenceException | destination is null. |
IOException | Stream is not readable or writeable. |
This method essentially "copies" one stream to another by setting the destination Stream position to zero, writing all of the data in the source Stream to the destination, resetting the source Stream back to its original position, and resetting the destination to a position of zero.
Platforms: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP, Windows Server 2003, Windows Vista
EnhancedStream Class | EnhancedStream Members | Overload List
Send comments on this topic.
Documentation version 1.0.3.0.
© 2008 Dart Communications. All rights reserved.