Struct DataStoreTypes.SerializedItemDescriptor
A versioned item (or placeholder) storeable in an IPersistentDataStore or IPersistentDataStoreAsync.
Inherited Members
Namespace: LaunchDarkly.Sdk.Server.Subsystems
Assembly: LaunchDarkly.ServerSdk.dll
Syntax
public struct DataStoreTypes.SerializedItemDescriptor
Remarks
This is equivalent to DataStoreTypes.ItemDescriptor, but is used for persistent data stores. The SDK will convert each data item to and from its serialized string form; the persistent data store deals only with the serialized form.
Constructors
| Edit this page View SourceSerializedItemDescriptor(int, bool, string)
Constructs an instance.
Declaration
public SerializedItemDescriptor(int version, bool deleted, string serializedItem)
Parameters
Type | Name | Description |
---|---|---|
int | version | the version number |
bool | deleted | true if this is a deleted item placeholder |
string | serializedItem | the serialized data item (will not be null) |
Properties
| Edit this page View SourceDeleted
True if this is a placeholder (tombstone) for a deleted item.
Declaration
public bool Deleted { get; }
Property Value
Type | Description |
---|---|
bool |
Remarks
If this is true, SerializedItem may still contain a string representing the deleted item, but the persistent store implementation has the option of not storing it if it can represent the placeholder in a more efficient way.
SerializedItem
The data item's serialized representatation.
Declaration
public string SerializedItem { get; }
Property Value
Type | Description |
---|---|
string |
Remarks
This will never be null; for a deleted item placeholder, it will contain a special value that can be stored if necessary (see Deleted).
Version
The version number of this data, provided by the SDK.
Declaration
public int Version { get; }
Property Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |