Share via


ConfigurationClient.AddConfigurationSettingAsync Method

Definition

Overloads

AddConfigurationSettingAsync(ConfigurationSetting, CancellationToken)

Creates a ConfigurationSetting only if the setting does not already exist in the configuration store.

AddConfigurationSettingAsync(String, String, String, CancellationToken)

Creates a ConfigurationSetting if the setting, uniquely identified by key and label, does not already exist in the configuration store.

AddConfigurationSettingAsync(ConfigurationSetting, CancellationToken)

Source:
ConfigurationClient.cs
Source:
ConfigurationClient.cs

Creates a ConfigurationSetting only if the setting does not already exist in the configuration store.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Data.AppConfiguration.ConfigurationSetting>> AddConfigurationSettingAsync (Azure.Data.AppConfiguration.ConfigurationSetting setting, System.Threading.CancellationToken cancellationToken = default);
abstract member AddConfigurationSettingAsync : Azure.Data.AppConfiguration.ConfigurationSetting * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Data.AppConfiguration.ConfigurationSetting>>
override this.AddConfigurationSettingAsync : Azure.Data.AppConfiguration.ConfigurationSetting * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Data.AppConfiguration.ConfigurationSetting>>
Public Overridable Function AddConfigurationSettingAsync (setting As ConfigurationSetting, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ConfigurationSetting))

Parameters

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

A response containing the added ConfigurationSetting.

Applies to

AddConfigurationSettingAsync(String, String, String, CancellationToken)

Source:
ConfigurationClient.cs
Source:
ConfigurationClient.cs

Creates a ConfigurationSetting if the setting, uniquely identified by key and label, does not already exist in the configuration store.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Data.AppConfiguration.ConfigurationSetting>> AddConfigurationSettingAsync (string key, string value, string label = default, System.Threading.CancellationToken cancellationToken = default);
abstract member AddConfigurationSettingAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Data.AppConfiguration.ConfigurationSetting>>
override this.AddConfigurationSettingAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Data.AppConfiguration.ConfigurationSetting>>
Public Overridable Function AddConfigurationSettingAsync (key As String, value As String, Optional label As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ConfigurationSetting))

Parameters

key
String

The primary identifier of the configuration setting.

value
String

The configuration setting's value.

label
String

A label used to group this configuration setting with others.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

A response containing the added ConfigurationSetting.

Applies to