Edit

TextSetting Constructors

The TextSetting class has constructors that allow you to create instances of the class with different parameters.

TextSetting(String, String) Constructor

Definition

Namespace: Microsoft.CommandPalette.Extensions.Toolkit

Initializes a new instance of the TextSetting class with a key and a defaultValue.

public TextSetting(string key, string defaultValue)
        : base(key, defaultValue)
    {
    }

Parameters

key String

The unique identifier for the setting.

defaultValue String

The default value for the setting.

TextSetting(String, String, String, String) Constructor

Definition

Namespace: Microsoft.CommandPalette.Extensions.Toolkit

Initializes a new instance of the TextSetting class with a key, label, description, and defaultValue.

public TextSetting(string key, string label, string description, string defaultValue)
        : base(key, label, description, defaultValue)
    {
    }

Parameters

key String

The unique identifier for the setting.

label String

The display name of the setting.

description String

The description of the setting.

defaultValue String

The default value for the setting.