Baca dalam bahasa Inggris Edit

Bagikan melalui


CompositionContainer.ReleaseExports Method

Definition

Overloads

ReleaseExports(IEnumerable<Export>)

Releases a set of Export objects from the CompositionContainer.

ReleaseExports<T,TMetadataView>(IEnumerable<Lazy<T,TMetadataView>>)

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

ReleaseExports<T>(IEnumerable<Lazy<T>>)

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

ReleaseExports(IEnumerable<Export>)

Source:
CompositionContainer.cs
Source:
CompositionContainer.cs
Source:
CompositionContainer.cs
Source:
CompositionContainer.cs

Releases a set of Export objects from the CompositionContainer.

C#
public void ReleaseExports (System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.Export> exports);

Parameters

exports
IEnumerable<Export>

A collection of Export objects to be released.

Exceptions

exports is null.

exports contains an element that is null.

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.

Applies to

.NET 9 (package-provided) dan versi lainnya
Produk Versi
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

ReleaseExports<T,TMetadataView>(IEnumerable<Lazy<T,TMetadataView>>)

Source:
CompositionContainer.cs
Source:
CompositionContainer.cs
Source:
CompositionContainer.cs
Source:
CompositionContainer.cs

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

C#
public void ReleaseExports<T,TMetadataView> (System.Collections.Generic.IEnumerable<Lazy<T,TMetadataView>> exports);

Type Parameters

T

The type of the exports.

TMetadataView

The type of the exports' metadata view.

Parameters

exports
IEnumerable<Lazy<T,TMetadataView>>

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

Exceptions

exports is null.

exports contains an element that is null.

Applies to

.NET 9 (package-provided) dan versi lainnya
Produk Versi
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

ReleaseExports<T>(IEnumerable<Lazy<T>>)

Source:
CompositionContainer.cs
Source:
CompositionContainer.cs
Source:
CompositionContainer.cs
Source:
CompositionContainer.cs

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

C#
public void ReleaseExports<T> (System.Collections.Generic.IEnumerable<Lazy<T>> exports);

Type Parameters

T

The type of the exports.

Parameters

exports
IEnumerable<Lazy<T>>

A collection of indirect references to the exports to be removed.

Exceptions

exports is null.

exports contains an element that is null.

Applies to

.NET 9 (package-provided) dan versi lainnya
Produk Versi
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)