IPluginCollectionCreateView(SelectPluginContainers, IComparerIPluginAssembly) Method

Creates a new view for this collection of plug-ins with order of items determined by the specified filter.

  Tip

The created view may be stored in any object associated with SessionProfile - for example, in an implementation of IPlugin. The view will be refreshed automatically after any change of Version.

  Important

Due to synchronization, the created view must not be used in application scope, i.e., it must not be stored either in implementations of IPluginSingleton or in IPluginStorage.

Definition

Namespace: SMath.Extensibility.Collections
Assembly: SMath.Manager (in SMath.Manager.dll) Version: 1.74.9654.0
C#
IPluginCollectionView CreateView(
	SelectPluginContainers filter,
	IComparer<IPluginAssembly> comparer = null
)

Parameters

filter  SelectPluginContainers
Filter to select the collection items by. It will be re-applied automatically by the resulting IPluginCollectionView after any change of Version.
comparer  IComparerIPluginAssembly  (Optional)
Comparer which defines the order of items in the resulting view or to use the default comparer.

Return Value

IPluginCollectionView
The created view.

See Also