Share via


Windows Media Player 11 SDK THEME.savePreference 

Windows Media Player SDK banner art

Previous Next

THEME.savePreference

The savePreference method saves a preference in the registry.

Syntax

  

Parameters

  theKey

A String specifying the key of the preference value to save.

  theValue

A String specifying the value to save.

Return Values

This method does not return a value.

Remarks

A preference is a key/value pair that can be stored in the registry in order to retain information about the state of Windows Media Player between runs. This feature can be used, for example, to save customization settings so that they won't have to be re-entered each time Windows Media Player is started.

Preferences are not encrypted and therefore are not a secure method for persisting data. Do not use preferences to store private data.

Example Code

  

Requirements

Windows Media Player version 7.0 or later.

See Also

Previous Next