Finds all Preference Objects in the class defined by
className that have the same value as
value and returns the identifiers of the objects
found. Note that it is very important for the type
T to override the
Equals(Object) method with an
appropriate implementation, since that
implementation alone affects the objects will match the given search
condition object, value.
Namespace: Spotfire.Dxp.Framework.PreferencesAssembly: Spotfire.Dxp.Framework (in Spotfire.Dxp.Framework.dll) Version: 18.10.8513.5432 (18.10.8513.5432)
Syntax
Parameters
- className
- Type: System String
The name of the preference class in which the search operation will be executed.
- value
- Type: T
The value of the preference object to compare with. The Equals method of the object will be used to match objects in the given preference class.
Type Parameters
- T
- The type of the preference value for this preference object.
Return Value
Type: ReadOnlyCollection PreferenceObjectIdentifierA read-only collection consisiting of preference objects that match the class and value given by className and value.
Exceptions
Exception | Condition |
---|---|
System ArgumentNullException | If value or className is null. |
System ArgumentException | If className is an empty string, if the preference class is not defined, or if T is of wrong type (for example does not match the type that was previously registered with the given class). |
Remarks
Version Information
See Also