LumiSoft Net Help
ReadHeader Method (storeStream, maxCount, exceededAction)
NamespacesLumiSoft.Net.IOSmartStreamReadHeader(Stream, Int32, SizeExceededAction)
Reads header from stream and stores to the specified storeStream.
Declaration Syntax
C#Visual BasicVisual C++F#
public int ReadHeader(
	Stream storeStream,
	int maxCount,
	SizeExceededAction exceededAction
)
Public Function ReadHeader ( 
	storeStream As Stream,
	maxCount As Integer,
	exceededAction As SizeExceededAction
) As Integer
public:
int ReadHeader(
	Stream^ storeStream, 
	int maxCount, 
	SizeExceededAction exceededAction
)
member ReadHeader : 
        storeStream : Stream * 
        maxCount : int * 
        exceededAction : SizeExceededAction -> int 
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.
Return Value
Int32
Returns how many bytes readed from source stream.
Exceptions
ExceptionCondition
ObjectDisposedExceptionIs raised when this object is disposed and this method is accessed.
ArgumentNullExceptionIs raised when storeStream is null.
ArgumentExceptionIs raised when any of the arguments has invalid value.
LineSizeExceededExceptionIs raised when source stream has too big line.
DataSizeExceededExceptionIs raised when reading exceeds maxCount specified value.
IncompleteDataExceptionIs raised when source stream closed before header-terminator reached.

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