LaunchDarkly Dotnet Server SDK
Search Results for

    Show / Hide Table of Contents

    Struct DataStoreTypes.SerializedItemDescriptor

    A versioned item (or placeholder) storeable in an IPersistentDataStore or IPersistentDataStoreAsync.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    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 Source

    SerializedItemDescriptor(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 Source

    Deleted

    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.

    | Edit this page View Source

    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).

    | Edit this page View Source

    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 Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    ValueType.ToString()
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX