BeginWrite()

Stream::BeginWrite(System::ArrayPtr<uint8_t>, int, int, System::AsyncCallback, System::SharedPtr<System::Object>) method

Initiates an asynchronous write operation.

virtual System::SharedPtr<System::IAsyncResult> System::IO::Stream::BeginWrite(System::ArrayPtr<uint8_t> buffer, int offset, int count, System::AsyncCallback callback, System::SharedPtr<System::Object> state)

Arguments

ParameterTypeDescription
bufferSystem::ArrayPtr<uint8_t>A buffer containing data to be written
offsetintA 0-based offset in buffer indicating the position from which the data to write begins
countintThe number of bytes to write
callbackSystem::AsyncCallbackA callback to be called when the operation completes
stateSystem::SharedPtr<System::Object>User-provided data used to uniquely identify each asynchronous write operation

Return Value

An IAsyncResult object representing the initiated asynchronous write operation

See Also