Adds a PreferenceObjectT as the application default
preference object.
Namespace: Spotfire.Dxp.Framework.Preferences
Assembly: Spotfire.Dxp.Framework (in Spotfire.Dxp.Framework.dll) Version: 65.0.19510.3242 (65.0.19510.3242)
Syntax
C#
public void AddApplicationDefault<T>( PreferenceObject<T> preferenceObject )
Parameters
- preferenceObject
- Type: Spotfire.Dxp.Framework.PreferencesPreferenceObjectT
The preference object to add.
Type Parameters
- T
- The type of the preference value for this preference object.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | If preferenceObject is null. |
ArgumentException | If T is of wrong type, that is, does not match the type of objects previously registered. |
InvalidOperationException | If an object already is marked as application default. |
Remarks
A default object is typically registered with this class during the initialization phase of application add-ins.
Version Information
Supported in: 14.3, 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8
See Also