How do magnets affect an ICD?

Magnets temporarily disable the detection circuit of an ICD when they're placed directly over the device.