IsolatedStorage.Get(Text, DataScope, IsolationLevel, var SecretText) Method

Version: Available or changed with runtime version 18.0.

Gets the value associated with the specified key, applying the specified isolation level to the read.

Syntax

[Ok := ]  IsolatedStorage.Get(Key: Text, DataScope: DataScope, ReadIsolation: IsolationLevel, var Value: SecretText)

Parameters

Key
Type: Text
The key of the value to get. If the specified key is not found an error will be reported.

DataScope
Type: DataScope
The scope of the data to retrieve.

ReadIsolation
Type: IsolationLevel
The isolation level applied to the read. For example, IsolationLevel::UpdLock locks the key row so it can be safely read, modified, and written back within the same transaction.

Value
Type: SecretText
The value that is associated with the specified key.

Return Value

[Optional] Ok
Type: Boolean
true if the value was retrieved 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