Home Notices Documents Classes Download Others Rice
Classes  >  preference  >  Exists(string)
preference class : Exists(string) method

Description

Makes sure existence of entry specified by argument.

Syntax

preferenceInstance.Exists(string prefName)

Arguments

ClassNameDescription
stringprefNameA preference name.

Return value

ClassDescription
boolA value that indicates whether the entry is exists.

Sample code

1:

preference pref = new preference();

2:

pref.Set("some.preference.entry", "some value"); // It makes new entry;

3:

bool exists = pref.Exists("some.preference.entry"); // The exists is true.

Notes

If the entry exists, returns true. Otherwise, returns false.

Links for reference

None.

Copyright © Rice All rights reserved.