Compartir a través de


DocumentRollback Class

The DocumentRollback class allows you to create a collection that stores Microsoft Dynamics GP document numbers.

Use a DocumentRollback object to store the document numbers you retrieve for an eConnect transaction. If an error occurs during your eConnect transaction, the DocumentRollback class allows you to produce an arraylist that specifies all the document numbers in your transaction. The RollBackDocumentList method of the GetNextDocNumbers class uses this arraylist to restore the specified Microsoft Dynamics GP document numbers.

Constructor

Name

Description

DocumentRollback()

Initializes an instance of the DocumentRollback class.

Methods

Name

Return Value

Description

Add Method

void

Adds a Microsoft Dynamics GP document number to a DocumentRollback collection.

Dispose Method

void

Releases the resources of the DocumentRollback object.

CollectionContainsDocuments Method

bool

Specifies whether a DocumentRollback collection is empty.

GetRollBackDocumentList Method

List<RollBackDocument>

Returns a list of document numbers from the Rollback collection.

RollBackDocuments Method

ArrayList

Returns an arraylist of document numbers from the Rollback collection.