Adds a PreferenceObject T as the application default
preference object.
Namespace: Spotfire.Dxp.Framework.PreferencesAssembly: Spotfire.Dxp.Framework (in Spotfire.Dxp.Framework.dll) Version: 18.10.8513.5432 (18.10.8513.5432)
Syntax
Parameters
- preferenceObject
- Type: Spotfire.Dxp.Framework.Preferences PreferenceObject T
The preference object to add.
Type Parameters
- T
- The type of the preference value for this preference object.
Exceptions
Exception | Condition |
---|---|
System ArgumentNullException | If preferenceObject is null. |
System ArgumentException | If T is of wrong type, that is, does not match the type of objects previously registered. |
System 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