KitchenDraw SDK 2
Show / Hide Table of Contents

Method TryReadIniValue

TryReadIniValue(string, string, string, out bool)

Tries to read value of an .INI file entry.

Declaration
public bool TryReadIniValue(string iniFilename, string sectionName, string keyName, out bool value)
Parameters
Type Name Description
string iniFilename

The .INI file to read.

string sectionName

Section to read (without square brackets).

string keyName

Key to read.

bool value

When the method completes, this parameter will contain the value of the entry.

Returns
Type Description
bool

true if te entry was found and was read, false otherwise.

Remarks

Relative paths are counted from the application directory. Thus, you do not need to provide a full path for the SPACE.INI, for example. Just pass "SPACE.INI" string as iniFilename parameter value.

TryReadIniValue(string, string, string, out double)

Tries to read value of an .INI file entry.

Declaration
public bool TryReadIniValue(string iniFilename, string sectionName, string keyName, out double value)
Parameters
Type Name Description
string iniFilename

The .INI file to read.

string sectionName

Section to read (without square brackets).

string keyName

Key to read.

double value

When the method completes, this parameter will contain the value of the entry.

Returns
Type Description
bool

true if te entry was found and was read, false otherwise.

Remarks

Relative paths are counted from the application directory. Thus, you do not need to provide a full path for the SPACE.INI, for example. Just pass "SPACE.INI" string as iniFilename parameter value.

TryReadIniValue(string, string, string, out int)

Tries to read value of an .INI file entry.

Declaration
public bool TryReadIniValue(string iniFilename, string sectionName, string keyName, out int value)
Parameters
Type Name Description
string iniFilename

The .INI file to read.

string sectionName

Section to read (without square brackets).

string keyName

Key to read.

int value

When the method completes, this parameter will contain the value of the entry.

Returns
Type Description
bool

true if te entry was found and was read, false otherwise.

Remarks

Relative paths are counted from the application directory. Thus, you do not need to provide a full path for the SPACE.INI, for example. Just pass "SPACE.INI" string as iniFilename parameter value.

TryReadIniValue(string, string, string, out string)

Tries to read value of an .INI file entry.

Declaration
public bool TryReadIniValue(string iniFilename, string sectionName, string keyName, out string value)
Parameters
Type Name Description
string iniFilename

The .INI file to read.

string sectionName

Section of the entry to read.

string keyName

Key of the entry to read.

string value

When the method completes, this parameter will contain the value of the entry.

Returns
Type Description
bool

true if te entry was found and was read, false otherwise.

Remarks

Relative paths are counted from the application directory. Thus, you do not need to provide a full path for the SPACE.INI, for example. Just pass "SPACE.INI" string as iniFilename parameter value.

In this article
Back to top Generated by DocFX