ExtensionMethods.CopyTo Method

Add a simple copy method to Stream

Namespace:  Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

‘선언
<ExtensionAttribute> _
Public Shared Sub CopyTo ( _
    sourceStream As Stream, _
    targetStream As Stream _
)
‘사용 방법
Dim sourceStream As Stream
Dim targetStream As Stream

sourceStream.CopyTo(targetStream)
public static void CopyTo(
    this Stream sourceStream,
    Stream targetStream
)
[ExtensionAttribute]
public:
static void CopyTo(
    Stream^ sourceStream, 
    Stream^ targetStream
)
static member CopyTo : 
        sourceStream:Stream * 
        targetStream:Stream -> unit 
public static function CopyTo(
    sourceStream : Stream, 
    targetStream : Stream
)

Parameters

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Stream. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

.NET Framework Security

See Also

Reference

ExtensionMethods Class

ExtensionMethods Members

Microsoft.VisualStudio.PlatformUI Namespace