LaunchDarkly Dotnet Client SDK
Search Results for

    Show / Hide Table of Contents

    Struct FlagValueChangeEvent

    A parameter class used with FlagValueChanged.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: LaunchDarkly.Sdk.Client.Interfaces
    Assembly: LaunchDarkly.ClientSdk.dll
    Syntax
    public struct FlagValueChangeEvent
    Remarks

    This is not an analytics event to be sent to LaunchDarkly; it is a notification to the application.

    Constructors

    | Edit this page View Source

    FlagValueChangeEvent(string, LdValue, LdValue, bool)

    Constructs a new instance.

    Declaration
    public FlagValueChangeEvent(string key, LdValue oldValue, LdValue newValue, bool deleted)
    Parameters
    Type Name Description
    string key

    the key of the feature flag whose configuration has changed

    LdValue oldValue

    the last known value of the flag for the specified user prior to the update

    LdValue newValue

    the new value of the flag for the specified user

    bool deleted

    true if the flag was deleted

    Properties

    | Edit this page View Source

    Deleted

    True if the flag was completely removed from the environment.

    Declaration
    public readonly bool Deleted { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Key

    The key of the feature flag whose configuration has changed.

    Declaration
    public readonly string Key { get; }
    Property Value
    Type Description
    string
    Remarks

    The specified flag may have been modified directly, or this may be an indirect change due to a change in some other flag that is a prerequisite for this flag, or a user segment that is referenced in the flag's rules.

    | Edit this page View Source

    NewValue

    The new value of the flag for the specified user.

    Declaration
    public readonly LdValue NewValue { get; }
    Property Value
    Type Description
    LdValue
    Remarks

    Since flag values can be of any JSON data type, this is represented as LdValue. That class has properties for converting to other .NET types, such as AsBool.

    If the flag was deleted or could not be evaluated, this will be Null. there is no application default value parameter as there is for the Variation methods; it is up to your code to substitute whatever fallback value is appropriate.

    | Edit this page View Source

    OldValue

    The last known value of the flag for the specified user prior to the update.

    Declaration
    public readonly LdValue OldValue { get; }
    Property Value
    Type Description
    LdValue
    Remarks

    Since flag values can be of any JSON data type, this is represented as LdValue. That class has properties for converting to other .NET types, such as AsBool.

    If the flag was deleted or could not be evaluated, this will be Null. there is no application default value parameter as there is for the Variation methods; it is up to your code to substitute whatever fallback value is appropriate.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX