FeatureFlagClient.DeleteFeatureFlag Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| DeleteFeatureFlag(FeatureFlag, Boolean, CancellationToken) |
Delete a FeatureFlag from the configuration store. |
| DeleteFeatureFlag(String, String, CancellationToken) |
Delete a FeatureFlag from the configuration store. |
DeleteFeatureFlag(FeatureFlag, Boolean, CancellationToken)
- Source:
- FeatureFlagClient.cs
Delete a FeatureFlag from the configuration store.
public virtual Azure.Response DeleteFeatureFlag(Azure.Data.AppConfiguration.FeatureFlag flag, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteFeatureFlag : Azure.Data.AppConfiguration.FeatureFlag * bool * System.Threading.CancellationToken -> Azure.Response
override this.DeleteFeatureFlag : Azure.Data.AppConfiguration.FeatureFlag * bool * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function DeleteFeatureFlag (flag As FeatureFlag, Optional onlyIfUnchanged As Boolean = false, Optional cancellationToken As CancellationToken = Nothing) As Response
Parameters
- flag
- FeatureFlag
The FeatureFlag to delete.
- onlyIfUnchanged
- Boolean
If set to true and the feature flag exists in the configuration store, delete the feature flag only if the passed-in FeatureFlag is the same version as the one in the configuration store. The versions are the same if their Etag values match. If they differ, the service returns 412 (precondition failed) and a RequestFailedException is thrown to indicate that the feature flag in the configuration store was modified since it was last obtained by the client.
- cancellationToken
- CancellationToken
A CancellationToken controlling the request lifetime.
Returns
A response indicating the success of the operation.
Applies to
DeleteFeatureFlag(String, String, CancellationToken)
- Source:
- FeatureFlagClient.cs
Delete a FeatureFlag from the configuration store.
public virtual Azure.Response DeleteFeatureFlag(string name, string label = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteFeatureFlag : string * string * System.Threading.CancellationToken -> Azure.Response
override this.DeleteFeatureFlag : string * string * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function DeleteFeatureFlag (name As String, Optional label As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response
Parameters
- name
- String
The name of the feature flag.
- label
- String
A label used to group this feature flag with others.
- cancellationToken
- CancellationToken
A CancellationToken controlling the request lifetime.
Returns
A response indicating the success of the operation.