BuildMaster SDK Reference
Version:

SetEncryptionMode(PersistenceEncryptionMode mode, byte[] key) Method

Sets the encryption mode to use for encrypted persistent properties.

Syntax

public static void SetEncryptionMode(PersistenceEncryptionMode mode, byte[] key)

Parameters

mode
Type: PersistenceEncryptionMode

The encryption mode.

key
Type: byte[]

The encryption key. Currently this must be exactly 16 bytes.

Exceptions

System.ArgumentNullException

key is null (Nothing in Visual Basic).

System.ArgumentException

key length is invalid.

System.ArgumentOutOfRangeException

mode is not a valid value.