CompositionContainer.ReleaseExports Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Releases a set of Export objects from the CompositionContainer.
public:
void ReleaseExports(System::Collections::Generic::IEnumerable<System::ComponentModel::Composition::Primitives::Export ^> ^ exports);
public void ReleaseExports (System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.Export> exports);
member this.ReleaseExports : seq<System.ComponentModel.Composition.Primitives.Export> -> unit
Public Sub ReleaseExports (exports As IEnumerable(Of Export))
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
ReleaseExports<T,TMetadataView>(IEnumerable<Lazy<T,TMetadataView>>)
- Source:
- CompositionContainer.cs
- Source:
- CompositionContainer.cs
Removes a collection of exports from composition and releases their resources if possible.
public:
generic <typename T, typename TMetadataView>
void ReleaseExports(System::Collections::Generic::IEnumerable<Lazy<T, TMetadataView> ^> ^ exports);
public void ReleaseExports<T,TMetadataView> (System.Collections.Generic.IEnumerable<Lazy<T,TMetadataView>> exports);
member this.ReleaseExports : seq<Lazy<'T, 'MetadataView>> -> unit
Public Sub ReleaseExports(Of T, TMetadataView) (exports As IEnumerable(Of Lazy(Of T, TMetadataView)))
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
ReleaseExports<T>(IEnumerable<Lazy<T>>)
- Source:
- CompositionContainer.cs
- Source:
- CompositionContainer.cs
Removes a collection of exports from composition and releases their resources if possible.
public:
generic <typename T>
void ReleaseExports(System::Collections::Generic::IEnumerable<Lazy<T> ^> ^ exports);
public void ReleaseExports<T> (System.Collections.Generic.IEnumerable<Lazy<T>> exports);
member this.ReleaseExports : seq<Lazy<'T>> -> unit
Public Sub ReleaseExports(Of T) (exports As IEnumerable(Of Lazy(Of T)))
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
.