ExtensionRegistrar<T,TMetadataView> Class

Definition

Lazy Mef Importer class that :

  1. Imports parts that export the type T.
  2. Ability to provide a filter.
C++
generic <typename T, typename TMetadataView>
public ref class ExtensionRegistrar abstract : Microsoft::VisualStudio::Modeling::ExtensionEnablement::ExtensionRegistrarBase<T, TMetadataView>

Type Parameters

T
TMetadataView
Inheritance
ExtensionRegistrar<T,TMetadataView>
Derived

Constructors

Properties

FilteredImports (Inherited from ExtensionRegistrarBase<T,TMetadataView>)
LazyImports

List of lazy imports after filtering was applied.

(Inherited from ExtensionRegistrarBase<T,TMetadataView>)
Logger

Used to log exceptions/errors encountered by the registrar object.

(Inherited from ExtensionRegistrarBase<T,TMetadataView>)
UnfilteredLazyImports

List of MEF-imported T.

Methods

CanImport(Lazy<T,TMetadataView>)

Determines if for a particular Lazy Import, the underlying exported object should be imported or not. The default implementation allows all imports.

(Inherited from ExtensionRegistrarBase<T,TMetadataView>)
Compare(Tuple<T,TMetadataView>, Tuple<T,TMetadataView>)

Compares two imported objects of the same type.

(Inherited from ExtensionRegistrarBase<T,TMetadataView>)

Applies to

Proizvod Verzije
Visual Studio SDK 2017, 2019, 2022