Share via


CompositionContainer.ReleaseExports 方法

定义

重载

ReleaseExports(IEnumerable<Export>)

Export 中释放一组 CompositionContainer 对象。

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

从组合中移除导出的集合并释放其资源(如果可能)。

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

从组合中移除导出的集合并释放其资源(如果可能)。

ReleaseExports(IEnumerable<Export>)

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

Export 中释放一组 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 对象的集合。

例外

exportsnull

exports 包含为 null 的元素。

注解

此方法的行为可能因构造 的上下文 Export 而异。 有关更多信息,请参见 ReleaseExport 方法。

适用于

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

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

从组合中移除导出的集合并释放其资源(如果可能)。

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

导出的类型。

TMetadataView

导出的元数据视图的类型。

参数

exports
IEnumerable<Lazy<T,TMetadataView>>

对要移除的导出及其元数据的间接引用的集合。

例外

exportsnull

exports 包含为 null 的元素。

适用于

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

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

从组合中移除导出的集合并释放其资源(如果可能)。

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

导出的类型。

参数

exports
IEnumerable<Lazy<T>>

对要移除的导出的间接引用的集合。

例外

exportsnull

exports 包含为 null 的元素。

适用于