Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PrintQueueStream::BeginWrite Method (array<Byte>^, Int32, Int32, AsyncCallback^, Object^)

 

Begins an asynchronous write operation.

Namespace:   System.Printing
Assembly:  System.Printing (in System.Printing.dll)

public:
[HostProtectionAttribute(SecurityAction::LinkDemand, ExternalThreading = true)]
virtual IAsyncResult^ BeginWrite(
	array<unsigned char>^ buffer,
	int offset,
	int count,
	AsyncCallback^ callback,
	Object^ state
) override

Parameters

buffer
Type: array<System::Byte>^

The buffer from which to write data.

offset
Type: System::Int32

The byte offset in the buffer from which to begin writing.

count
Type: System::Int32

The maximum number of bytes to write.

callback
Type: System::AsyncCallback^

An asynchronous callback, which is called when the writing operation is complete.

state
Type: System::Object^

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

Return Value

Type: System::IAsyncResult^

An IAsyncResult that represents the asynchronous write, which might still be pending.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft