CompositionContainer.ReleaseExports 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| ReleaseExports(IEnumerable<Export>) |
從 中釋放一組Export物件。CompositionContainer |
| ReleaseExports<T,TMetadataView>(IEnumerable<Lazy<T,TMetadataView>>) |
從合成中移除一組輸出,並在可能的情況下釋放其資源。 |
| ReleaseExports<T>(IEnumerable<Lazy<T>>) |
從合成中移除一組輸出,並在可能的情況下釋放其資源。 |
ReleaseExports(IEnumerable<Export>)
從 中釋放一組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 待釋放的物品。
例外狀況
exports 是 null。
exports 包含一個元素 null。
備註
此方法的行為會因建構時的情境 Export 而異。 如需詳細資訊,請參閱 ReleaseExport 方法。
適用於
ReleaseExports<T,TMetadataView>(IEnumerable<Lazy<T,TMetadataView>>)
從合成中移除一組輸出,並在可能的情況下釋放其資源。
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>>
一組間接引用,指向要移除的出口及其元資料。
例外狀況
exports 是 null。
exports 包含一個元素 null。
適用於
ReleaseExports<T>(IEnumerable<Lazy<T>>)
從合成中移除一組輸出,並在可能的情況下釋放其資源。
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>>
一組間接指向要移除的出口參考。
例外狀況
exports 是 null。
exports 包含一個元素 null。