Skip to content

Latest commit

 

History

History
47 lines (38 loc) · 1.76 KB

isolatedstorage-setencrypted-string-string-datascope-method.md

File metadata and controls

47 lines (38 loc) · 1.76 KB
title description ms.author ms.date ms.tgt_pltfrm ms.topic author
IsolatedStorage.SetEncrypted(Text, Text [, DataScope]) Method
Encrypts and sets the value associated with the specified key.
solsen
02/26/2024
na
reference
SusanneWindfeldPedersen

IsolatedStorage.SetEncrypted(Text, Text [, DataScope]) Method

Version: Available or changed with runtime version 2.0.

Encrypts and sets the value associated with the specified key. The input string cannot exceed a length of 215 plain characters; be aware that special characters take up more space.

Syntax

[Ok := ]  IsolatedStorage.SetEncrypted(Key: Text, Value: Text [, DataScope: DataScope])

Parameters

Key
 Type: Text
The key of the value to set.

Value
 Type: Text
The value that will be associated with the specified key.

[Optional] DataScope
 Type: DataScope
The scope of the stored data. If a value is not passed in, the default value DataScope::Module will be used.

Return Value

[Optional] Ok
 Type: Boolean
true if the value was saved successfully, otherwise false. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.

See Also

IsolatedStorage Data Type
Getting Started with AL
Developing Extensions