[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

TPropertyNotFoundEvent

Callback for the TReader.OnPropertyNotFoundevent.

Declaration

Source position: classesh.inc line 902

type TPropertyNotFoundEvent = procedure(

  Reader: TReader;

  Instance: TPersistent;

  var PropName: String;

  IsPath: Boolean;

  var Handled: Boolean;

  var Skip: Boolean

) of object;

Description

TPropertyNotFoundEventis the prototype for the TReader.OnPropertyNotFoundevent. Readeris the sender of the event, Instanceis the instance that is being streamed. PropInfois a pointer to the RTTI information for the property being read. Handledshould be set to Trueif the handler redirected the unknown property succesfully, and Skipshould be set to Trueif the value should be skipped. IsPathdetermines whether the property refers to a sub-property.

See also

TReader.OnPropertyNotFound

  

Handler for treating missing properties.