Write a segment of memory at the given position asynchronously.

C# | Visual Basic | Managed C++ |
IAsyncResult BeginWrite ( long position, ArraySegment<byte> data, AsyncCallback callback, Object state )
Function BeginWrite ( _ position As Long, _ data As ArraySegment(Of Byte), _ callback As AsyncCallback, _ state As Object _ ) As IAsyncResult
IAsyncResult^ BeginWrite ( long long position, ArraySegment<unsigned char> data, AsyncCallback^ callback, Object^ state )

- position (Int64)
- The position to write at.
- data (ArraySegment<(Of Byte>))
- The memory buffer that the data should be written from.
- callback (AsyncCallback)
- The callback to invoke when the transmission completes or if it fails.
- state (Object)
- The context object to be passed to the callback.

The reference to the asynchronous write request.