When an annotation file is stored, layers that have a non-null LayerPassword are encrypted. When this file is opened, a GetLayerPassword event is invoked to request the password for each encrypted layer. If the correct password is supplied for this event, the layer is decrypted and available for viewing. If an incorrect or null password is supplied, the layer is discarded from memory (the layer still exists in the file but may be subsequently overwritten).