Home Notices Documents Classes Download Others Rice
Classes  >  preference  >  SetLocked(string,bool)
preference class : SetLocked(string,bool) method

Description

Sets the lock status of the entry.

Syntax

preferenceInstance.SetLocked(string prefName, bool state)

Arguments

ClassNameDescription
stringprefNameA preference name.
boolstateA Value indicating lock status.

Return value

None.

Sample code

1:

preference pref = new preference();

2:

pref.SetLocked("some.preference.entry", true);

Notes

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

Links for reference

None.

Copyright © Rice All rights reserved.