PrintQueueStream::BeginWrite Method (array<Byte>^, Int32, Int32, AsyncCallback^, Object^)
.NET Framework (current version)
Begins an asynchronous write operation.
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
Available since 3.0
Show: