PreferenceBaseAddPreferenceT Method

Spotfire 14.3 API Reference
Call this method (in the constructor of your concrete preference class implementation) to add a new property to your preference class.

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#
protected PreferenceProperty<T> AddPreference<T>(
	PreferenceProperty<T> property
)

Parameters

property
Type: Spotfire.Dxp.Framework.PreferencesPreferencePropertyT
The preference property to add.

Type Parameters

T

Return Value

Type: PreferencePropertyT
The property that was added. Use the return value of this method to assign a local variable.
Exceptions

ExceptionCondition
ArgumentNullException If property is null.
InvalidOperationException If a property with the same name as property already has been added to this preference.
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

Reference