Adds a PreferenceObjectT as the application default
preference object.
Namespace: Spotfire.Dxp.Framework.Preferences
Assembly: Spotfire.Dxp.Framework (in Spotfire.Dxp.Framework.dll) Version: 23.18.9504.3877 (23.18.9504.3877)
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
See Also