CommandExtensionRegistrar Class
Base class for an ExtensionRegistar that can register ContextMenu command extensions
Inheritance Hierarchy
System.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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
'Déclaration
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 | |
---|---|---|
CommandExtensionRegistrar |
Top
Properties
Name | Description | |
---|---|---|
CommandExtensionDefaultStartId | ||
CommandSetGuid | ||
FilteredImports | (Inherited from ExtensionRegistrarBase<T, TMetadataView>.) | |
LazyImports | (Inherited from ExtensionRegistrarBase<T, TMetadataView>.) | |
Logger | (Overrides ExtensionRegistrarBase<T, TMetadataView>.Logger.) | |
MenuService | ||
MetadataFilter | ||
ServiceProvider | ||
UnfilteredLazyImports | (Inherited from ExtensionRegistrar<T, TMetadataView>.) |
Top
Methods
Name | Description | |
---|---|---|
CanImport | Allow registrars that match the metadatafilter with a key in their metadata to be imported (Overrides ExtensionRegistrarBase<T, TMetadataView>.CanImport(Lazy<T, TMetadataView>).) | |
Compare(Tuple<T1, T2>, Boolean) | (Inherited from ExtensionRegistrarBase<T, TMetadataView>.) | |
Compare(Tuple<T1, T2>, Boolean) | ||
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
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. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
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