ExchangeMessageReader.EndRead
EndRead()
Attempts to complete reading the message normally. This checks that the message is completed normally. If the end of an XML element is detected, which corresponds to the body of the message, then if the message number exceeds the maximum number of the message received, it places the exchange plan node in the
ReceivedNo attribute. The exchange plan node write lock is removed and the message is considered received.
Server, thick client, external connection, Mobile application (server).
Normal completion of reading requires that the
EndRead method be called up explicitly. If when the message is read the
ExchangeMessageReader object was freed or the
BeginRead, method ran again, then the previous reading will be aborted by an implicit call on the
CancelRead method.
ReadingMessage = ExchangePlans.CreateMessageReader(); XMLReader = New XMLReader; XMLReader.OpenFile(FileName); ReadingMessage.BeginRead(XMLReader); // Actions to read message body ReadingMessage.EndRead();
|