Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
4/8/2010

Sets a preference value that can be retrieved using the preferenceForKey Method. These two methods allow Windows Mobile Widgets to persist data on the device.

Note:
This function stores preference data in the registry as clear text. The data is not encrypted. Sensitive information should not be stored using this function.

Syntax

void setReferenceForKey(preference, key);

Parameters

preference

The value to be stored.

key

The key with which the value is associated.

Return Value

None

Remarks

None