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
)
<ExtensionAttribute>
Public Shared Function CopyToAsync (
source As Stream,
destination As Stream,
bufferSize As Integer,
count As Long,
Optional cancellationToken As CancellationToken = Nothing
) As Task
public:
[ExtensionAttribute]
static Task^ CopyToAsync(
Stream^ source,
Stream^ destination,
int bufferSize,
long long count,
CancellationToken cancellationToken = nullptr
)
[<ExtensionAttribute>]
static member CopyToAsync :
source : Stream *
destination : Stream *
bufferSize : int *
count : int64 *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken null
*)
-> Task
Parameters
- source
- Type: System.IOStream
- destination
- Type: System.IOStream
- bufferSize
- Type: SystemInt32
- count
- Type: SystemInt64
- cancellationToken (Optional)
- Type: System.ThreadingCancellationToken
Return Value
Type:
TaskUsage 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