PreferenceManagerGetPreferenceT Method TIBCO Spotfire 7.9 API Reference
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: 30.0.10915.3380 (30.0.10915.3380)
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: T
The instance of the preference class corresponding to T.
Exceptions

ExceptionCondition
InvalidOperationException If the preference cannot be found, that is, it is not registered.
Version Information

Supported in: 7.9, 7.8, 7.7, 7.6, 7.5, 7.0, 6.5, 6.0, 5.5, 5.0
See Also

Reference