LumiSoft Net Help
BeginRead Method (buffer, offset, count, callback, state)
NamespacesLumiSoft.Net.IOSmartStreamBeginRead(array<Byte>[]()[][], Int32, Int32, AsyncCallback, Object)
Begins an asynchronous read operation.
Declaration Syntax
C#Visual BasicVisual C++F#
public override IAsyncResult BeginRead(
	byte[] buffer,
	int offset,
	int count,
	AsyncCallback callback,
	Object state
)
Public Overrides Function BeginRead ( 
	buffer As Byte(),
	offset As Integer,
	count As Integer,
	callback As AsyncCallback,
	state As Object
) As IAsyncResult
public:
virtual IAsyncResult^ BeginRead(
	array<unsigned char>^ buffer, 
	int offset, 
	int count, 
	AsyncCallback^ callback, 
	Object^ state
) override
abstract BeginRead : 
        buffer : byte[] * 
        offset : int * 
        count : int * 
        callback : AsyncCallback * 
        state : Object -> IAsyncResult 
override BeginRead : 
        buffer : byte[] * 
        offset : int * 
        count : int * 
        callback : AsyncCallback * 
        state : Object -> IAsyncResult 
Parameters
buffer (array<Byte>[]()[][])
The buffer to read the data into.
offset (Int32)
The byte offset in buffer at which to begin writing data read from the stream.
count (Int32)
The maximum number of bytes to read.
callback (AsyncCallback)
An optional asynchronous callback, to be called when the read is complete.
state (Object)
A user-provided object that distinguishes this particular asynchronous read request from other requests.
Return Value
IAsyncResult
An IAsyncResult that represents the asynchronous read, which could still be pending.
Exceptions
ExceptionCondition
ObjectDisposedExceptionIs raised when this object is disposed and this method is accessed.
ArgumentNullExceptionIs raised when buffer is null reference.
ArgumentOutOfRangeExceptionIs raised when any of the arguments has out of valid range.

Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119