CompositionContainer.ReleaseExports<T, TMetadataView> Method (IEnumerable<Lazy<T, TMetadataView>>)

 

Removes a collection of exports from composition and releases their resources if possible.

Namespace:   System.ComponentModel.Composition.Hosting
Assembly:  System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)

public void ReleaseExports<T, TMetadataView>(
	IEnumerable<Lazy<T, TMetadataView>> exports
)

Parameters

exports
Type: System.Collections.Generic.IEnumerable<Lazy<T, TMetadataView>>

A collection of indirect references to the exports to be removed and their metadata.

Type Parameters

T

The type of the exports.

TMetadataView

The type of the exports' metadata view.

.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Return to top
Show: