Gets a preference that has been registered with the
framework. Note that a preference must always have been
registered during the initialization phase of an
add-in for it to be returned by this method.
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 T GetPreference<T>() where T : PreferenceBase
Type Parameters
- T
- The type of the preference class which must be a PreferenceBase.
Return Value
Type: TThe instance of the preference class corresponding to T.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | If the preference cannot be found, that is, it is not registered. |
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