Table of Contents

IConfigurationRoot.SetValue Method

Sets one value, replacing whatever is at APath.

Syntax

Unit: Bcl.Configuration

function IConfigurationRoot.SetValue(const APath: string; const AValue: string; const ASource: string): IConfigurationRoot; virtual; abstract;

Parameters

<-> Parameter Type Description
const APath string The key. Levels that do not exist are created. An index, as in Shards[0].Connection.Password, can only address an item that exists.
const AValue string The value: a string until it is read as something else.
const ASource string How error messages refer to the origin of this value, as in from the secret store.

See also