Begins an asynchronous line reading from the source stream.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
[ObsoleteAttribute("Use method 'ReadLine' instead.")] public IAsyncResult BeginReadLine( byte[] buffer, int offset, int maxCount, SizeExceededAction exceededAction, AsyncCallback callback, Object state )
<ObsoleteAttribute("Use method 'ReadLine' instead.")> Public Function BeginReadLine ( buffer As Byte(), offset As Integer, maxCount As Integer, exceededAction As SizeExceededAction, callback As AsyncCallback, state As Object ) As IAsyncResult
public: [ObsoleteAttribute(L"Use method 'ReadLine' instead.")] IAsyncResult^ BeginReadLine( array<unsigned char>^ buffer, int offset, int maxCount, SizeExceededAction exceededAction, AsyncCallback^ callback, Object^ state )
[<ObsoleteAttribute("Use method 'ReadLine' instead.")>] member BeginReadLine : buffer : byte[] * offset : int * maxCount : int * exceededAction : SizeExceededAction * callback : AsyncCallback * state : Object -> IAsyncResult
Parameters
- buffer (array<Byte>[]()[][])
- Buffer where to store readed line data.
- offset (Int32)
- The location in buffer to begin storing the data.
- maxCount (Int32)
- Maximum number of bytes to read.
- exceededAction (SizeExceededAction)
- Specifies how this method behaves when maximum line size exceeded.
- callback (AsyncCallback)
- The AsyncCallback delegate that is executed when asynchronous operation completes.
- state (Object)
- An object that contains any additional user-defined data.
Return Value
IAsyncResult
An IAsyncResult that represents the asynchronous call.
An IAsyncResult that represents the asynchronous call.
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | Is raised when this object is disposed and this method is accessed. |
ArgumentNullException | Is raised when buffer is null reference. |
ArgumentOutOfRangeException | is raised when any of the arguments has invalid value. |
Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119