Click or drag to resize

StreamCopyCopyToAsync Method

IT Hit User File System

Namespace:  ITHit.FileSystem.Mac
Assembly:  ITHit.FileSystem.Mac (in ITHit.FileSystem.Mac.dll) Version: 1.0.8837.18647
Syntax
public static Task CopyToAsync(
	this Stream source,
	Stream destination,
	int bufferSize,
	long count,
	CancellationToken cancellationToken = null
)

Parameters

source
Type: System.IOStream
destination
Type: System.IOStream
bufferSize
Type: SystemInt32
count
Type: SystemInt64
cancellationToken (Optional)
Type: System.ThreadingCancellationToken

Return Value

Type: Task

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).
See Also