Share via


EditableXmlConfigHelper.SetAppSetting(String, String, String) Method

Definition

Ensures there is a key-value pair in the appSettings config section with the specified key and value.

 abstract void SetAppSetting(std::wstring const & key, std::wstring const & value, std::wstring const & comment = null);
public abstract void SetAppSetting (string key, string value, string comment = default);
abstract member SetAppSetting : string * string * string -> unit
Public MustOverride Sub SetAppSetting (key As String, value As String, Optional comment As String = Nothing)

Parameters

key
String

The key of the app setting.

value
String

The value of the app setting.

comment
String

An optional xml comment to add before the app setting.

Applies to