| 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.
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.
Target Platforms: Microsoft .NET Framework 2.0