PowerTCP Mail for .NET
CopyStream Method
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > MessageStream Class : CopyStream Method




source
The source Stream to copy from.
destination
The destination Stream to copy to.
Copies the contents of one Stream to another.

Syntax

Visual Basic (Declaration) 
Public Shared Sub CopyStream( _
   ByVal source As Stream, _
   ByVal destination As Stream _
) 
Visual Basic (Usage)Copy Code
Dim source As Stream
Dim destination As Stream
 
MessageStream.CopyStream(source, destination)
C# 
public static void CopyStream( 
   Stream source,
   Stream destination
)
Managed Extensions for C++ 
public: static void CopyStream( 
   Stream* source,
   Stream* destination
) 
C++/CLI 
public:
static void CopyStream( 
   Stream^ source,
   Stream^ destination
) 

Parameters

source
The source Stream to copy from.
destination
The destination Stream to copy to.

Remarks

source is copied until it cannot be read anymore into destination. Neither Stream has their position reset, though it is generally recommended that the destination Stream's position be set to 0 after this operation is complete. It is also generally recommended that both the source and destination Stream positions be set to zero after this operation is completed.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.