Sets the encryption mode to use for encrypted persistent properties.
The encryption mode.
The encryption key. Currently this must be exactly 16 bytes.
key is null (Nothing in Visual Basic).
key length is invalid.
mode is not a valid value.