System.ComponentModel.Composition Namespace
Dieser Namespace stellt Klassen bereit, die den Kern des Managed Extensibility Framework (MEF) bilden. This namespace provides classes that constitute the core of the Managed Extensibility Framework, or MEF.
Klassen
AdaptationConstants |
Enthält vom Kompositionssystem verwendete statische Metadatenschlüssel.Contains static metadata keys used by the composition system. |
AttributedModelServices |
Enthält Hilfsmethoden zum Verwenden des attributierten MEF-Programmiermodells mit der Komposition.Contains helper methods for using the MEF attributed programming model with composition. |
CatalogReflectionContextAttribute |
Bei Anwendung auf Assembly ein Objekt kann ein AssemblyCatalog-Objekt benutzerdefinierte ReflectionContext-Objekte ermitteln.When applied to a Assembly object, enables an AssemblyCatalog object to discover custom ReflectionContext objects. |
ChangeRejectedException |
Eine Ausnahme, die angibt, ob ein Teil während der Komposition zurückgewiesen wurde.An exception that indicates whether a part has been rejected during composition. |
CompositionContractMismatchException |
Die Ausnahme, die ausgelöst wird, wenn der zugrunde liegende exportierte Wert oder die Metadaten eines Lazy<T>-Objekts oder Lazy<T,TMetadata>-Objekts nicht in |
CompositionError |
Stellt einen Fehler dar, der während der Komposition in einem Objekt auftrat.Represents an error that occurred during composition. |
CompositionException |
Stellt die Ausnahme dar, die ausgelöst wird, wenn während der Komposition in einem CompositionContainer-Objekt einer oder mehrere Fehler auftreten.Represents the exception that is thrown when one or more errors occur during composition in a CompositionContainer object. |
ExportAttribute |
Gibt an, dass ein Typ, eine Eigenschaft, ein Feld oder eine Methode einen bestimmten Export bereitstellt.Specifies that a type, property, field, or method provides a particular export. |
ExportFactory<T> |
Eine Factory, die neue Instanzen eines Teils erstellt, der den angegebenen Export bereitstellt.A factory that creates new instances of a part that provides the specified export. |
ExportFactory<T,TMetadata> |
Eine Factory, die neue Instanzen eines Teils erstellt, der den angegebenen Export bereitstellt, mit angefügten Metadaten.A factory that creates new instances of a part that provides the specified export, with attached metadata. |
ExportLifetimeContext<T> |
Hält einen von einem ExportFactory<T>-Objekt erstellten exportierten Wert und einen Verweis auf eine Methode zum Freigeben des Objekts.Holds an exported value created by an ExportFactory<T> object and a reference to a method to release that object. |
ExportMetadataAttribute |
Gibt Metadaten für einen Typ, eine Eigenschaft, ein Feld oder eine Methode mit einer Markierung durch ExportAttribute an.Specifies metadata for a type, property, field, or method marked with the ExportAttribute. |
ImportAttribute |
Gibt an, dass eine Eigenschaft, ein Feld oder ein Parameterwert vom CompositionContainer-Objekt bereitgestellt werden soll.Specifies that a property, field, or parameter value should be provided by the CompositionContainer.object. |
ImportCardinalityMismatchException |
Die Ausnahme, die ausgelöst wird, wenn die Kardinalität eines Imports nicht mit der Kardinalität der entsprechenden Exporte kompatibel ist.The exception that is thrown when the cardinality of an import is not compatible with the cardinality of the matching exports. |
ImportingConstructorAttribute |
Gibt an, welcher Konstruktor beim Erstellen eines Teils verwendet werden soll.Specifies which constructor should be used when creating a part. |
ImportManyAttribute |
Gibt an, dass eine Eigenschaft, ein Feld oder Parameter vom CompositionContainer-Objekt mit allen entsprechenden Exporten aufgefüllt werden soll.Specifies that a property, field, or parameter should be populated with all matching exports by the CompositionContainer object. |
InheritedExportAttribute |
Gibt an, dass ein Typ einen bestimmten Export bereitstellt und dass Unterklassen dieses Typs diesen Exportieren ebenfalls bereitstellen.Specifies that a type provides a particular export, and that subclasses of that type will also provide that export. |
MetadataAttributeAttribute |
Gibt an, dass die Eigenschaften eines benutzerdefinierten Attributs Metadaten für Exporte bereitstellen, die für den gleichen Typ, die gleiche Eigenschaft, das gleiche Feld oder die gleiche Methode angewendet werden.Specifies that a custom attribute's properties provide metadata for exports applied to the same type, property, field, or method. |
MetadataViewImplementationAttribute |
Gibt den Typ an, der verwendet wird, um eine Metadatenansicht zu implementieren.Specifies the type used to implement a metadata view. |
PartCreationPolicyAttribute |
Gibt das CreationPolicy-Element für einen Teil an.Specifies the CreationPolicy for a part. |
PartMetadataAttribute |
Gibt Metadaten für einen Teil an.Specifies metadata for a part. |
PartNotDiscoverableAttribute |
Gibt an, dass die Exporte dieses Typs nicht in einem ComposablePartCatalog-Objekt enthalten sind.Specifies that this type's exports won't be included in a ComposablePartCatalog. |
Schnittstellen
ICompositionService |
Stellt Methoden bereit, um Importe für eine vorhandene Teilinstanz zu erfüllen.Provides methods to satisfy imports on an existing part instance. |
IPartImportsSatisfiedNotification |
Benachrichtigt einen Teil, wenn die Importe ausgeführt wurden.Notifies a part when its imports have been satisfied. |
Enumerationen
CreationPolicy |
Gibt den Zeitpunkt und die Art der Instanziierung eines Teils an.Specifies when and how a part will be instantiated. |
ImportSource |
Gibt Werte an, die angeben, wie die MEF-Kompositions-Engine nach Importen sucht.Specifies values that indicate how the MEF composition engine searches for imports. |