CopyTo Method
See Also 
System.IO Namespace > ExtensionMethods Class : CopyTo Method



source
destination

Glossary Item Box

Syntax

Visual Basic (Declaration)  
<ExtensionAttribute()>
Public Shared Function CopyTo( _
   ByVal source As Stream, _
   ByVal destination As Stream _
) As Long
Visual Basic (Usage) Copy Code
Dim source As Stream
Dim destination As Stream
Dim value As Long
 
value = ExtensionMethods.CopyTo(source, destination)
C#  
[Extension()]
public static long CopyTo( 
   Stream source,
   Stream destination
)
C++/CLI  
[Extension()]
public:
static int64 CopyTo( 
   Stream^ source,
   Stream^ destination
) 

Parameters

source
destination

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also