Skip to main content
namespace ML.SDK
Class | Sealed

CloudVariableBank


namespace ML.SDK
{
sealed class CloudVariableBank
}

Summary

Stores cloud variables. The variable banks are assigned to hold cloud variables belonging to specific subjects such as User, World and Server.

A variable bank might have been designated as read-only based on current user’s access permissions. Only reading the variables is allowed in a read-only variable bank.

Properties

PropertyDesciption
ReadOnlySpecifies if this variable bank is designated as read-only. Writing variables (Creating, Updating, deleting) of read-only variable banks is not allowed.

Methods

MethodDescription
GetVariable(string)Returns value assigned to a key. It throws an error if the key does not exist.
KeyExists(string)Checks if a key exists.
MarkKeyForDeletion(string)Marks the key to be deleted from the server. Same result can be accomplished by setting the value of the key to nil. Note : setting a value to a key after marking it for deletion will result in deletion request begin canceled.
SetVariable(string, Object)Creates a cloud variable with specified key and value. If the key already exists, it updates its value. Note : Only a certain allowed types can be saved in the server, please refer to the documentation