ConfigurationClient.DeleteConfigurationSetting Method

Definition

Overloads

DeleteConfigurationSetting(ConfigurationSetting, Boolean, CancellationToken)

Delete a ConfigurationSetting from the configuration store.

DeleteConfigurationSetting(String, String, CancellationToken)

Delete a ConfigurationSetting from the configuration store.

DeleteConfigurationSetting(ConfigurationSetting, Boolean, CancellationToken)

Source:
ConfigurationClient.cs
Source:
ConfigurationClient.cs

Delete a ConfigurationSetting from the configuration store.

public virtual Azure.Response DeleteConfigurationSetting (Azure.Data.AppConfiguration.ConfigurationSetting setting, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteConfigurationSetting : Azure.Data.AppConfiguration.ConfigurationSetting * bool * System.Threading.CancellationToken -> Azure.Response
override this.DeleteConfigurationSetting : Azure.Data.AppConfiguration.ConfigurationSetting * bool * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function DeleteConfigurationSetting (setting As ConfigurationSetting, Optional onlyIfUnchanged As Boolean = false, Optional cancellationToken As CancellationToken = Nothing) As Response

Parameters

onlyIfUnchanged
Boolean

If set to true and the configuration setting exists in the configuration store, delete the setting if the passed-in ConfigurationSetting is the same version as the one in the configuration store. The setting versions are the same if their ETag fields match. If the two settings are different versions, this method will throw an exception to indicate that the setting 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

DeleteConfigurationSetting(String, String, CancellationToken)

Source:
ConfigurationClient.cs
Source:
ConfigurationClient.cs

Delete a ConfigurationSetting from the configuration store.

public virtual Azure.Response DeleteConfigurationSetting (string key, string label = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteConfigurationSetting : string * string * System.Threading.CancellationToken -> Azure.Response
override this.DeleteConfigurationSetting : string * string * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function DeleteConfigurationSetting (key As String, Optional label As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response

Parameters

key
String

The primary identifier of the configuration setting.

label
String

A label used to group this configuration setting with others.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

A response indicating the success of the operation.

Applies to