ConfigurationModelFactory.FeatureFlag Method

Definition

A feature flag.

public static Azure.Data.AppConfiguration.FeatureFlag FeatureFlag(string name = default, bool enabled = false, string label = default, string description = default, Azure.Data.AppConfiguration.FeatureFlagConditions conditions = default, System.Collections.Generic.IEnumerable<Azure.Data.AppConfiguration.FeatureFlagVariantDefinition> variants = default, Azure.Data.AppConfiguration.FeatureFlagAllocation allocation = default, Azure.Data.AppConfiguration.FeatureFlagTelemetryConfiguration telemetry = default, System.Collections.Generic.IDictionary<string,string> tags = default, DateTimeOffset? lastModified = default, Azure.ETag? etag = default);
static member FeatureFlag : string * bool * string * string * Azure.Data.AppConfiguration.FeatureFlagConditions * seq<Azure.Data.AppConfiguration.FeatureFlagVariantDefinition> * Azure.Data.AppConfiguration.FeatureFlagAllocation * Azure.Data.AppConfiguration.FeatureFlagTelemetryConfiguration * System.Collections.Generic.IDictionary<string, string> * Nullable<DateTimeOffset> * Nullable<Azure.ETag> -> Azure.Data.AppConfiguration.FeatureFlag
Public Shared Function FeatureFlag (Optional name As String = Nothing, Optional enabled As Boolean = false, Optional label As String = Nothing, Optional description As String = Nothing, Optional conditions As FeatureFlagConditions = Nothing, Optional variants As IEnumerable(Of FeatureFlagVariantDefinition) = Nothing, Optional allocation As FeatureFlagAllocation = Nothing, Optional telemetry As FeatureFlagTelemetryConfiguration = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional lastModified As Nullable(Of DateTimeOffset) = Nothing, Optional etag As Nullable(Of ETag) = Nothing) As FeatureFlag

Parameters

name
String

The name of the feature flag.

enabled
Boolean

The enabled state of the feature flag.

label
String

The label the feature flag belongs to.

description
String

The description of the feature flag.

conditions
FeatureFlagConditions

The conditions of the feature flag.

variants
IEnumerable<FeatureFlagVariantDefinition>

The variants of the feature flag.

allocation
FeatureFlagAllocation

The allocation of the feature flag.

telemetry
FeatureFlagTelemetryConfiguration

The telemetry settings of the feature flag.

tags
IDictionary<String,String>

The tags of the feature flag.

lastModified
Nullable<DateTimeOffset>

A date representing the last time the feature flag was modified.

etag
Nullable<ETag>

A value representing the current state of the resource.

Returns

A new FeatureFlag instance for mocking.

Applies to