Holds the result of operations on a DataStore.
public class DataStore.Result<T> : Sansar.Utility.JsonSerializationData<T>Type parameters: T: The type of the result.
Remarks
Properties used my depend on the method called and options. The type used must be able to be serialized with the JsonSerializer.
Members at a glance
| Kind | Members |
|---|---|
| Properties | Version |
| Methods | ToString |
Properties
Version
public int Version { get; }Version of the value for the key used for this operation.
Value: int — An integer version number for the data in the store.
Remarks
Each write to a given key will update this value, even if the same value is written. To ensure that one script is not clobbering writes by another script the Options.Version can verify that the data has not changed.
Methods
ToString
public override string ToString()A string representation of this object.
Returns: string — A string representation of this object.
Remarks
The format of this string may change between releases.
Used in examples
Generated from the Sansar 47.10.0 client ScriptApi snapshot.