Udostępnij za pośrednictwem


ExtensionRegistrar<T,TMetadataView> Class

Definition

Lazy Mef Importer class that :

  1. Imports parts that export the type T.
  2. Ability to provide a filter.
generic <typename T, typename TMetadataView>
public ref class ExtensionRegistrar abstract : Microsoft::VisualStudio::Modeling::ExtensionEnablement::ExtensionRegistrarBase<T, TMetadataView>
public abstract class ExtensionRegistrar<T,TMetadataView> : Microsoft.VisualStudio.Modeling.ExtensionEnablement.ExtensionRegistrarBase<T,TMetadataView>
type ExtensionRegistrar<'T, 'MetadataView> = class
    inherit ExtensionRegistrarBase<'T, 'MetadataView>
Public MustInherit Class ExtensionRegistrar(Of T, TMetadataView)
Inherits ExtensionRegistrarBase(Of T, TMetadataView)

Type Parameters

T
TMetadataView
Inheritance
ExtensionRegistrar<T,TMetadataView>
Derived

Constructors

ExtensionRegistrar<T,TMetadataView>()

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