ExtensionRegistrar<T, TMetadataView> Class

Lazy Mef Importer class that : 1. Imports parts that export the type T. 2. Ability to provide a filter.

Inheritance Hierarchy

  Microsoft.VisualStudio.Modeling.ExtensionEnablement.ExtensionRegistrarBase<T, TMetadataView>
    Microsoft.VisualStudio.Modeling.ExtensionEnablement.ExtensionRegistrar<T, TMetadataView>

Namespace:  Microsoft.VisualStudio.Modeling.ExtensionEnablement
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)


Public MustInherit Class ExtensionRegistrar(Of T, TMetadataView) _
    Inherits ExtensionRegistrarBase(Of T, TMetadataView)
public abstract class ExtensionRegistrar<T, TMetadataView> : ExtensionRegistrarBase<T, TMetadataView>
generic<typename T, typename TMetadataView>
public ref class ExtensionRegistrar abstract : public ExtensionRegistrarBase<T, TMetadataView>
type ExtensionRegistrar<'T, 'TMetadataView> =  
        inherit ExtensionRegistrarBase<'T, 'TMetadataView>
JScript does not support generic types or methods.

Type Parameters

  • T
  • TMetadataView

The ExtensionRegistrar<T, TMetadataView> type exposes the following members.


  Name Description
Protected method ExtensionRegistrar<T, TMetadataView>



  Name Description
Public property FilteredImports (Inherited from ExtensionRegistrarBase<T, TMetadataView>.)
Protected property LazyImports (Inherited from ExtensionRegistrarBase<T, TMetadataView>.)
Public property Logger Used to log exceptions/errors encountered by the registrar object. (Inherited from ExtensionRegistrarBase<T, TMetadataView>.)
Protected property UnfilteredLazyImports (Overrides ExtensionRegistrarBase<T, TMetadataView>.UnfilteredLazyImports.)



  Name Description
Protected method CanImport 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>.)
Protected method Compare (Inherited from ExtensionRegistrarBase<T, TMetadataView>.)
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also


Microsoft.VisualStudio.Modeling.ExtensionEnablement Namespace