From 33c782920cd0aa8a1b15096b4eacf558495c3b4b Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Wed, 23 Jun 2021 16:57:36 -0700 Subject: [PATCH] Use the correct snipper in AppConfiguration --- .../samples/Sample9_FeatureFlags.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample9_FeatureFlags.md b/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample9_FeatureFlags.md index d6fda044cf15c..da7bd3634f11e 100644 --- a/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample9_FeatureFlags.md +++ b/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample9_FeatureFlags.md @@ -44,10 +44,6 @@ if (response.Value is FeatureFlagConfigurationSetting featureFlag) Use the `DeleteConfigurationSetting` method to remove the feature flag: -```C# Snippet:Sample_GetFeatureFlag -Response response = client.GetConfigurationSetting(FeatureFlagConfigurationSetting.KeyPrefix + "feature_id"); -if (response.Value is FeatureFlagConfigurationSetting featureFlag) -{ - Console.WriteLine($"Feature flag {featureFlag.FeatureId} IsEnabled: {featureFlag.IsEnabled}"); -} +```C# Snippet:Sample_DeleteFeatureFlag +client.DeleteConfigurationSetting(featureFlagSetting); ```