Begins an asynchronous header reading from the source stream.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
public IAsyncResult BeginReadHeader( Stream storeStream, int maxCount, SizeExceededAction exceededAction, AsyncCallback callback, Object state )
Public Function BeginReadHeader ( storeStream As Stream, maxCount As Integer, exceededAction As SizeExceededAction, callback As AsyncCallback, state As Object ) As IAsyncResult
public: IAsyncResult^ BeginReadHeader( Stream^ storeStream, int maxCount, SizeExceededAction exceededAction, AsyncCallback^ callback, Object^ state )
member BeginReadHeader : storeStream : Stream * maxCount : int * exceededAction : SizeExceededAction * callback : AsyncCallback * state : Object -> IAsyncResult
Parameters
- storeStream (Stream)
- Stream where to store readed header.
- maxCount (Int32)
- Maximum number of bytes to read. Value 0 means not limited.
- exceededAction (SizeExceededAction)
- Specifies action what is done if maxCount number of bytes has 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 storeStream is null reference. |
ArgumentException | Is raised when any of the arguments has invalid value. |
Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119