Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 899 Bytes

File metadata and controls

25 lines (16 loc) · 899 Bytes
title ChoiceSetSetting.LoadFromJson(JsonObject) Method
description The LoadFromJson method loads the setting from a JSON object.
ms.date 2/19/2025
ms.topic reference
no-loc
PowerToys
Windows
Insider

ChoiceSetSetting.LoadFromJson(JsonObject) Method

Definition

Namespace: Microsoft.CommandPalette.Extensions.Toolkit

The LoadFromJson method loads the setting from a JSON object. This is useful for applications that need to initialize settings from a configuration file or other sources.

Parameters

jsonObject JsonObject

The JsonObject that contains the values for the setting. This object should include the properties that need to be set, such as the name, description, default value, and list of choices.

Returns

A ChoiceSetSetting object that represents the loaded setting.