Windows Media Player SDK banner art
PreviousNext

THEME.savePreference

The savePreference method saves a preference in the registry.

Syntax

theme.savePreference(theKey, theValue)

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.

Example

<Theme id=”myskin”>
  <View 
    id=”View1” 
    onclose=”jscript:myskin.savePreference(‘drawer1’,‘open’);
             myskin.savePreference(‘drawer2’,‘close’)”>
  </View>
</Theme>

Remarks

A preference is a key/value pair that can be stored in the registry in order to retain information about the state of the 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 the Windows Media Player is started.

See Also

PreviousNext


© 2000-2001 Microsoft Corporation. All rights reserved.