CompositionContainer.ReleaseExport Method (Export)
Assembly: System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)
export is a null reference (Nothing in Visual Basic).
For example, the CatalogExportProvider will only release an Export if it comes from a ComposablePart that was constructed under a NonShared context. Release in this context means walking the dependency chain of the Export objects, detaching references from the container and calling Dispose on the ComposablePart objects as needed. If the Export was constructed under a Shared context the CatalogExportProvider will do nothing, as the specified Export may being used by other requestors. Those will only be detached when the container is itself disposed.