Preferences.RestoreDefault
 
 
 

Preferences.RestoreDefault

Description

Restores the default values for a preference or for all preferences in a category. A category is a set of preferences on the same subject grouped together in a node under the Preferences object located under the Application.

C# Syntax

Preferences.RestoreDefault( String in_bstrPrefName );

Scripting Syntax

Preferences.RestoreDefault( PreferenceName );

Parameters

Parameter Type Description
PreferenceName String The category or the preference to restore the default value. It can also be a specific preference.

Examples

1. Python Example

# This restores the default for the data_management category
Application.Preferences.RestoreDefault("data_management")

2. JScript Example

// This restores the default for only the scripting.language preference
Application.Preferences.RestoreDefault("scripting.language");

See Also

Preferences.SaveChanges Preferences.Categories Preferences.GetPreferenceValue Preferences.SetPreferenceValue Preferences.Import Preferences.Export