CompositionContainer.ReleaseExports 方法

定义

重载

ReleaseExports(IEnumerable<Export>)

Export 中释放一组 CompositionContainer 对象。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>)

Export 中释放一组 CompositionContainer 对象。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))

参数

exports
IEnumerable<Export>

将释放的 Export 对象的集合。A collection of Export objects to be released.

例外

exportsnullexports is null.

exports 包含为 null 的元素。exports contains an element that is null.

注解

此方法的行为可能因构造的上下文而异 ExportThe behavior of this method may vary depending on the context in which the Export was constructed. 有关更多信息,请参见 ReleaseExport 方法。For more information, see the ReleaseExport method.

适用于

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

从组合中移除导出的集合并释放其资源(如果可能)。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)))

类型参数

T

导出的类型。The type of the exports.

TMetadataView

导出的元数据视图的类型。The type of the exports' metadata view.

参数

exports
IEnumerable<Lazy<T,TMetadataView>>

对要移除的导出及其元数据的间接引用的集合。A collection of indirect references to the exports to be removed and their metadata.

例外

exportsnullexports is null.

exports 包含为 null 的元素。exports contains an element that is null.

适用于

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

从组合中移除导出的集合并释放其资源(如果可能)。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)))

类型参数

T

导出的类型。The type of the exports.

参数

exports
IEnumerable<Lazy<T>>

对要移除的导出的间接引用的集合。A collection of indirect references to the exports to be removed.

例外

exportsnullexports is null.

exports 包含为 null 的元素。exports contains an element that is null.

适用于