ExchangeMessageReader.CancelRead

Syntax:

CancelRead()

Description:

Running this method immediately aborts the reading of the message. The writing to the database corresponding to the exchange plan node is unlocked and no modifications are made to it.

Availability:

Server, thick client, external connection, Mobile application (server).

Example:

ReadingMessage = ExchangePlans.CreateMessageReader();
XMLReader = New XMLReader;
XMLReader.OpenFile(FileName);
ReadingMessage.BeginRead(XMLReader);
// Actions to read the message body
If Failure Then
    ReadingMessage.CancelRead();
Else
    ReadingMessage.EndRead();
EndIf
;


    

1C:Enterprise Developer's Community