Summary

SkipMemberAttribute can be applied to record or class type to specify field or property name which is ignored silently while de-seializing.

Syntax

SkipMemberAttribute = class(TAliasBaseAttr);

Remarks

SkipMemberAttribute is used to specify removed or changed member name, which will be ignored while de-serializing. Usually, if some class or record member was removed or renamed in the new version of application, de-serializing data, which contains that removed member, will produce "Member not found" error. SkipMemberAttribute can be used to suppress this error and ignore removed member data silently.

Examples

DelphiCopyCode imageCopy Code
type
  [SkipMember('MyOldProperty')]
  TMyObject = class
end;