'Declaration Public Event ReadChecksum As ReadChecksumEventHandler
'Usage Dim instance As FormModel Dim handler As ReadChecksumEventHandler AddHandler instance.ReadChecksum, handler
public event ReadChecksumEventHandler ReadChecksum
public: __event ReadChecksumEventHandler* ReadChecksum
public: event ReadChecksumEventHandler^ ReadChecksum
The event handler receives an argument of type ReadChecksumEventArgs containing data related to this event. The following ReadChecksumEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Checksum | The checksum that the event handler is returning back to the issuer of the event. |
The FormModel class has numerous optimizations to save processing time. One of those is the ability to save the results of analysis of the form model and reuse that analysis at a later date. The optimization relies on a checksum of the image to recognize when it must re-analyze the form model.
A FormModel object uses this event to retrieve a checksum of the persistent state of a form. That checksum should change whenever the form changes.
Suggestion: When integrating with FormDirector, use the Accusoft.FormDirectorSdk.FormDefinition.GetPartialHashCode method to generate this checksum.