共用方式為


Microsoft.VisualStudio.Modeling.ExtensionEnablement Namespace

Classes

CommandExtensionAttribute

MefMetadata wrapper Attribute that declaratively declares the Command Group and position of a Command Extension in the Context Menu for a Dsl.

ExtensionEnablementConstants
ExtensionRegistrar<T,TMetadataView>

Lazy Mef Importer class that :

  1. Imports parts that export the type T.
  2. Ability to provide a filter.
ExtensionRegistrarBase<T,TMetadataView>

The base class for regular extension registrar and special case for validation registrar

ValidationExtensionRegistrar

Base class for an ExtensionRegistar that can register Validation Extensions

Interfaces

ICommandExtension

The interface specifies the list of methods that a CommandExtension is required to implement.

IExtensibilityLogger

Logging interface for extension registrars.

ILinkedUndoContext

An interface that provides access to a linked undo mechanism such as the one in Visual Studio

ILinkedUndoTransaction

A transaction which supports linked undo such as that implemented by Visual Studio

IMenuCommand

Simple interface to interact with an ICommandExtension. It specifies a list of methods that must be exposed to be consumed by a ICommandExtension implementation.