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

Description

Obtains a value of the entry specified by argument.

Syntax

preferenceInstance.Get(string prefName)

Arguments

ClassNameDescription
stringprefNameA preference name.

Return value

ClassDescription
int, bool, or stringA value of specified entry.

Sample code

1:

preference pref = new preference();

2:

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

3:

string strVal = pref.Get("some.preference.entry");

Notes

Ver 1.0.0.0 : It has Returned an instance of the proxy class.

Ver 1.0.0.1 : The return value is modified. It does not return the proxy class, returns the int , bool, or string.

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

If the entry is locked, an UnknownException will be thrown.

Links for reference

None.

Copyright © Rice All rights reserved.