Click or drag to resize

StreamExtensions.CopyToAsync Method

[Missing <summary> documentation for "M:UMod.Shared.StreamExtensions.CopyToAsync(System.IO.Stream,System.IO.Stream,System.Action{System.Int64},System.Int32)"]

Namespace:  UMod.Shared
Assembly:  UMod-Shared (in UMod-Shared.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static IEnumerator CopyToAsync(
	this Stream stream,
	Stream destination,
	Action<long> onProgress = null,
	int yieldAfterMilliseconds = 16
)

Parameters

stream
Type: System.IO.Stream

[Missing <param name="stream"/> documentation for "M:UMod.Shared.StreamExtensions.CopyToAsync(System.IO.Stream,System.IO.Stream,System.Action{System.Int64},System.Int32)"]

destination
Type: System.IO.Stream

[Missing <param name="destination"/> documentation for "M:UMod.Shared.StreamExtensions.CopyToAsync(System.IO.Stream,System.IO.Stream,System.Action{System.Int64},System.Int32)"]

onProgress (Optional)
Type: System.Action<Int64>

[Missing <param name="onProgress"/> documentation for "M:UMod.Shared.StreamExtensions.CopyToAsync(System.IO.Stream,System.IO.Stream,System.Action{System.Int64},System.Int32)"]

yieldAfterMilliseconds (Optional)
Type: System.Int32

[Missing <param name="yieldAfterMilliseconds"/> documentation for "M:UMod.Shared.StreamExtensions.CopyToAsync(System.IO.Stream,System.IO.Stream,System.Action{System.Int64},System.Int32)"]

Return Value

Type: IEnumerator

[Missing <returns> documentation for "M:UMod.Shared.StreamExtensions.CopyToAsync(System.IO.Stream,System.IO.Stream,System.Action{System.Int64},System.Int32)"]

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