Share via


CompositionContainer.ReleaseExports Method (IEnumerable<Export>)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Releases a set of Export objects from the CompositionContainer.

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

Syntax

'Declaration
Public Sub ReleaseExports ( _
    exports As IEnumerable(Of Export) _
)
public void ReleaseExports(
    IEnumerable<Export> exports
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

exports is nulla null reference (Nothing in Visual Basic).

ArgumentException

exports contains an element that is nulla null reference (Nothing in Visual Basic).

Remarks

The behavior of this method may vary depending on the context in which the Export was constructed. For more information, see the ReleaseExport method.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.