CompositionContainer.ReleaseExport 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
| 속성 | Description |
|---|---|
| ReleaseExport(Export) |
Export지정된 CompositionContainer 개체를 해제합니다. |
| ReleaseExport<T>(Lazy<T>) |
컴퍼지션에서 지정된 내보내기를 제거하고 가능한 경우 해당 리소스를 해제합니다. |
ReleaseExport(Export)
- Source:
- CompositionContainer.cs
- Source:
- CompositionContainer.cs
- Source:
- CompositionContainer.cs
- Source:
- CompositionContainer.cs
Export지정된 CompositionContainer 개체를 해제합니다.
public:
void ReleaseExport(System::ComponentModel::Composition::Primitives::Export ^ export);
public void ReleaseExport(System.ComponentModel.Composition.Primitives.Export export);
member this.ReleaseExport : System.ComponentModel.Composition.Primitives.Export -> unit
Public Sub ReleaseExport (export As Export)
매개 변수
예외
export은 null입니다.
설명
이 메서드의 동작은 인스턴스를 생성 ExportProvider 한 구현에 Export 따라 달라질 수 있습니다. 일반적으로 비공유 내보내기를 컨테이너에서 분리해야 합니다.
예를 들어 컨텍스트 CatalogExportProvider 에서 Export 생성된 경우에만 릴리스 ComposablePart<xref:System.ComponentModel.Composition.CreationPolicy.NonShared> 됩니다. 이 컨텍스트에서 릴리스는 개체의 종속성 체인을 Export 걷고, 컨테이너에서 참조를 분리하고, 필요에 따라 개체를 호출 Dispose 하는 ComposablePart 것을 의미합니다.
Export 컨텍스트 <xref:System.ComponentModel.Composition.CreationPolicy.Shared> 에서 CatalogExportProvider 생성된 경우 지정된 Export 작업이 다른 요청자가 사용할 수 있으므로 아무 작업도 수행하지 않습니다. 컨테이너 자체가 삭제될 때만 분리됩니다.
적용 대상
ReleaseExport<T>(Lazy<T>)
- Source:
- CompositionContainer.cs
- Source:
- CompositionContainer.cs
- Source:
- CompositionContainer.cs
- Source:
- CompositionContainer.cs
컴퍼지션에서 지정된 내보내기를 제거하고 가능한 경우 해당 리소스를 해제합니다.
public:
generic <typename T>
void ReleaseExport(Lazy<T> ^ export);
public void ReleaseExport<T>(Lazy<T> export);
member this.ReleaseExport : Lazy<'T> -> unit
Public Sub ReleaseExport(Of T) (export As Lazy(Of T))
형식 매개 변수
- T
내보내기의 형식입니다.
매개 변수
- export
- Lazy<T>
제거할 내보내기 간접 참조입니다.
예외
export은 null입니다.