Table of Contents

IConfiguration.GetString Method

Reads a string. ADefault is returned only when the key is absent: a value that is present and is not a string is an error.

Remarks

The string is returned as it is, never trimmed. A number or a boolean is not converted to a string.

Syntax

Unit: Bcl.Configuration

function IConfiguration.GetString(const APath: string; const ADefault: string): string; virtual; abstract;

Parameters

<-> Parameter Type Description
const APath string
const ADefault string

See also