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

Description

Obtains a lock status of the entry.

Syntax

preferenceInstance.GetLocked(string prefName)

Arguments

ClassNameDescription
stringprefNameA preference name.

Return value

ClassDescription
boolA value indicating lock status.

Sample code

1:

preference pref = new preference();

2:

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

3:

bool lockStatus = pref.GetLocked("some.preference.entry"); // The lockStatus is false.

Notes

If the entry is not exist, an RtypeException will be thrown.

Links for reference

None.

Copyright © Rice All rights reserved.