Represents a mutable CRDT register that can be updated while updating a document. More...
Public Member Functions | |
| void | Set (object value) |
| Sets the register to a new value. | |
Public Member Functions inherited from DittoSDK.DittoRegister | |
| DittoRegister (object value) | |
| Initializes a new instance of the DittoRegister class. The register is initialized with the provided value that can be used as part of a document's content. | |
Additional Inherited Members | |
Properties inherited from DittoSDK.DittoRegister | |
| object | Value [get, set] |
| Gets the value of the register. | |
| string | String [get] |
Gets the underlying value of the document identifier as a string if possible, otherwise the return value will be null. | |
| string | StringValue [get] |
Gets the underlying value of the document identifier as a string if possible, otherwise the return value will be "" (an empty string). | |
| int | Int32Value [get] |
Gets the underlying value of the document identifier as an Int32 if possible, otherwise the return value will be 0. | |
| long | Int64Value [get] |
Gets the underlying value of the document identifier as an Int64 if possible, otherwise the return value will be 0. | |
| uint | UInt32Value [get] |
Gets the underlying value of the document identifier as a UInt32 if possible, otherwise the return value will be 0. | |
| ulong | UInt64Value [get] |
Gets the underlying value of the document identifier as a UInt64 if possible, otherwise the return value will be 0. | |
| float | FloatValue [get] |
Gets the underlying value of the document identifier as a Float if possible, otherwise the return value will be 0.0. | |
| double | DoubleValue [get] |
Gets the underlying value of the document identifier as a UInt32 if possible, otherwise the return value will be 0. | |
| bool | BooleanValue [get] |
Gets the underlying value of the document identifier as a bool if possible, otherwise the return value will be false. | |
| List< object > | List [get] |
Gets the underlying value of the document identifier as a List<object> if possible, otherwise the return value will be null. | |
| List< object > | ListValue [get] |
Gets the underlying value of the document identifier as a List<object> if possible, otherwise the return value will be [] (an empty list). | |
| Dictionary< string, object > | Dictionary [get] |
Gets the underlying value of the document identifier as a Dictionary<string, object> if possible, otherwise the return value will be null. | |
| Dictionary< string, object > | DictionaryValue [get] |
Gets the underlying value of the document identifier as a Dictionary<string, object> if possible, otherwise the return value will be {} (an empty dictionary). | |
Represents a mutable CRDT register that can be updated while updating a document.
This class can't be instantiated directly. It's returned automatically for any register property within an update block.
See also the Register property of DittoMutableDocumentPath.
|
inline |
Sets the register to a new value.
| value | The new value to store in the register. |