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

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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:
generic<typename T, typename TMetadataView>
void ReleaseExports(
	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: