MultiBufferMemoryStream.BeginFastCopyTo Method

Definition

Begins an asynchronous fast-copy operation.

public IAsyncResult BeginFastCopyTo (System.IO.Stream destination, DateTime? expiryTime, AsyncCallback callback, object state);
member this.BeginFastCopyTo : System.IO.Stream * Nullable<DateTime> * AsyncCallback * obj -> IAsyncResult
Public Function BeginFastCopyTo (destination As Stream, expiryTime As Nullable(Of DateTime), callback As AsyncCallback, state As Object) As IAsyncResult

Parameters

destination
Stream

The stream to which the contents of the current stream will be copied.

expiryTime
Nullable<DateTime>

DateTime indicating the expiry time.

callback
AsyncCallback

An optional asynchronous callback, to be called when the copy is complete.

state
Object

A user-provided object that distinguishes this particular asynchronous copy request from other requests.

Returns

An IAsyncResult that represents the asynchronous copy, which could still be pending.

Applies to