Class FlagsStateOption
Optional parameters that can be passed to AllFlagsState(Context, params FlagsStateOption[]).
Inherited Members
Namespace: LaunchDarkly.Sdk.Server
Assembly: LaunchDarkly.ServerSdk.dll
Syntax
public class FlagsStateOption
Fields
| Edit this page View SourceClientSideOnly
Specifies that only flags marked for use with the client-side SDK should be included in the state object. By default, all flags are included.
Declaration
public static readonly FlagsStateOption ClientSideOnly
Field Value
Type | Description |
---|---|
FlagsStateOption |
DetailsOnlyForTrackedFlags
Specifies that any flag metadata that is normally only used for event generation - such as flag versions and evaluation reasons - should be omitted for any flag that does not have event tracking or debugging turned on. This reduces the size of the JSON data if you are passing the flag state to the front end.
Declaration
public static readonly FlagsStateOption DetailsOnlyForTrackedFlags
Field Value
Type | Description |
---|---|
FlagsStateOption |
WithReasons
Specifies that evaluation reasons should be included in the state object (as returned by BoolVariationDetail(string, Context, bool), etc.). By default, they are not included.
Declaration
public static readonly FlagsStateOption WithReasons
Field Value
Type | Description |
---|---|
FlagsStateOption |
Methods
| Edit this page View SourceToString()
Returns the string representation of this option.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | the string representation |