Share via


CommandExtensionRegistrar Class

Base class for an ExtensionRegistar that can register ContextMenu command extensions

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.Modeling.ExtensionEnablement.ExtensionRegistrarBase<ICommandExtension, IDictionary<String, Object>>
    Microsoft.VisualStudio.Modeling.ExtensionEnablement.ExtensionRegistrar<ICommandExtension, IDictionary<String, Object>>
      Microsoft.VisualStudio.Modeling.Shell.ExtensionEnablement.CommandExtensionRegistrar

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

Syntax

'Declaration
Public MustInherit Class CommandExtensionRegistrar _
    Inherits ExtensionRegistrar(Of ICommandExtension, IDictionary(Of String, Object))
public abstract class CommandExtensionRegistrar : ExtensionRegistrar<ICommandExtension, IDictionary<string, Object>>
public ref class CommandExtensionRegistrar abstract : public ExtensionRegistrar<ICommandExtension^, IDictionary<String^, Object^>^>
[<AbstractClass>]
type CommandExtensionRegistrar =  
    class 
        inherit ExtensionRegistrar<ICommandExtension, IDictionary<string, Object>>
    end
public abstract class CommandExtensionRegistrar extends ExtensionRegistrar<ICommandExtension, IDictionary<String, Object>>

The CommandExtensionRegistrar type exposes the following members.

Constructors

  Name Description
Protected method CommandExtensionRegistrar

Top

Properties

  Name Description
Protected property CommandExtensionDefaultStartId
Protected property CommandSetGuid
Public property FilteredImports (Inherited from ExtensionRegistrarBase<T, TMetadataView>.)
Protected property LazyImports (Inherited from ExtensionRegistrarBase<T, TMetadataView>.)
Public property Logger (Overrides ExtensionRegistrarBase<T, TMetadataView>.Logger.)
Protected property MenuService
Protected property MetadataFilter
Protected property ServiceProvider
Protected property UnfilteredLazyImports (Inherited from ExtensionRegistrar<T, TMetadataView>.)

Top

Methods

  Name Description
Protected method CanImport Allow registrars that match the metadatafilter with a key in their metadata to be imported (Overrides ExtensionRegistrarBase<T, TMetadataView>.CanImport(Lazy<T, TMetadataView>).)
Protected method Compare (Overrides ExtensionRegistrarBase<T, TMetadataView>.Compare(Tuple<T, TMetadataView>, Tuple<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.)
Public method Initialize Assigns a unique commandId to each imported command extension and registers the command with the MenuService. Only commandExtensions whose metadata match the MetadataFilter are registered.
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.)

Top

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

Reference

Microsoft.VisualStudio.Modeling.Shell.ExtensionEnablement Namespace