다음을 통해 공유


ExportProvider.GetExports 메서드

정의

지정된 조건과 일치하는 모든 내보내기를 가져옵니다.

오버로드

Name Description
GetExports(ImportDefinition)

지정된 가져오기 정의의 조건과 일치하는 모든 내보내기를 가져옵니다.

GetExports(ImportDefinition, AtomicComposition)

지정된 가져오기 정의 및 컴퍼지션의 조건과 일치하는 모든 내보내기를 가져옵니다.

GetExports(Type, Type, String)

지정된 계약 이름을 가진 모든 내보내기를 가져옵니다.

GetExports<T,TMetadataView>()

지정된 형식 매개 변수에서 파생된 계약 이름을 가진 모든 내보내기를 가져옵니다.

GetExports<T,TMetadataView>(String)

지정된 계약 이름을 가진 모든 내보내기를 가져옵니다.

GetExports<T>()

지정된 형식 매개 변수에서 파생된 계약 이름을 가진 모든 내보내기를 가져옵니다.

GetExports<T>(String)

지정된 계약 이름을 가진 모든 내보내기를 가져옵니다.

GetExports(ImportDefinition)

Source:
ExportProvider.cs
Source:
ExportProvider.cs
Source:
ExportProvider.cs
Source:
ExportProvider.cs

지정된 가져오기 정의의 조건과 일치하는 모든 내보내기를 가져옵니다.

public:
 System::Collections::Generic::IEnumerable<System::ComponentModel::Composition::Primitives::Export ^> ^ GetExports(System::ComponentModel::Composition::Primitives::ImportDefinition ^ definition);
public System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.Export> GetExports(System.ComponentModel.Composition.Primitives.ImportDefinition definition);
member this.GetExports : System.ComponentModel.Composition.Primitives.ImportDefinition -> seq<System.ComponentModel.Composition.Primitives.Export>
Public Function GetExports (definition As ImportDefinition) As IEnumerable(Of Export)

매개 변수

definition
ImportDefinition

가져올 개체의 Export 조건을 정의하는 개체입니다.

반환

에 지정된 definition조건과 Export 일치하는 모든 개체의 컬렉션입니다.

예외

CardinalityExactlyOne 있고 지정된 조건과 일치하는 개체가 0 ExportImportDefinition있습니다.

-또는-

CardinalityZeroOrOne 있거나 ExactlyOne 지정된 ImportDefinition조건과 일치하는 개체가 두 Export 개 이상 있습니다.

definitionnull입니다.

적용 대상

GetExports(ImportDefinition, AtomicComposition)

Source:
ExportProvider.cs
Source:
ExportProvider.cs
Source:
ExportProvider.cs
Source:
ExportProvider.cs

지정된 가져오기 정의 및 컴퍼지션의 조건과 일치하는 모든 내보내기를 가져옵니다.

public:
 System::Collections::Generic::IEnumerable<System::ComponentModel::Composition::Primitives::Export ^> ^ GetExports(System::ComponentModel::Composition::Primitives::ImportDefinition ^ definition, System::ComponentModel::Composition::Hosting::AtomicComposition ^ atomicComposition);
public System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.Export> GetExports(System.ComponentModel.Composition.Primitives.ImportDefinition definition, System.ComponentModel.Composition.Hosting.AtomicComposition? atomicComposition);
public System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.Export> GetExports(System.ComponentModel.Composition.Primitives.ImportDefinition definition, System.ComponentModel.Composition.Hosting.AtomicComposition atomicComposition);
member this.GetExports : System.ComponentModel.Composition.Primitives.ImportDefinition * System.ComponentModel.Composition.Hosting.AtomicComposition -> seq<System.ComponentModel.Composition.Primitives.Export>
Public Function GetExports (definition As ImportDefinition, atomicComposition As AtomicComposition) As IEnumerable(Of Export)

매개 변수

definition
ImportDefinition

가져올 개체의 Export 조건을 정의하는 개체입니다.

atomicComposition
AtomicComposition

컴퍼지션에 대한 트랜잭션 컨테이너입니다.

반환

지정 definition 한 조건과 일치하는 모든 Export 개체의 컬렉션입니다atomicComposition.

예외

CardinalityExactlyOne 있고 지정된 조건과 일치하는 개체가 0 ExportImportDefinition있습니다.

-또는-

CardinalityZeroOrOne 있거나 ExactlyOne 지정된 ImportDefinition조건과 일치하는 개체가 두 Export 개 이상 있습니다.

definitionnull입니다.

-또는-

atomicCompositionnull입니다.

적용 대상

GetExports(Type, Type, String)

Source:
ExportProvider.GetExportOverrides.cs
Source:
ExportProvider.GetExportOverrides.cs
Source:
ExportProvider.GetExportOverrides.cs
Source:
ExportProvider.GetExportOverrides.cs

지정된 계약 이름을 가진 모든 내보내기를 가져옵니다.

public:
 System::Collections::Generic::IEnumerable<Lazy<System::Object ^, System::Object ^> ^> ^ GetExports(Type ^ type, Type ^ metadataViewType, System::String ^ contractName);
public System.Collections.Generic.IEnumerable<Lazy<object,object>> GetExports(Type type, Type? metadataViewType, string? contractName);
public System.Collections.Generic.IEnumerable<Lazy<object,object>> GetExports(Type type, Type metadataViewType, string contractName);
member this.GetExports : Type * Type * string -> seq<Lazy<obj, obj>>
Public Function GetExports (type As Type, metadataViewType As Type, contractName As String) As IEnumerable(Of Lazy(Of Object, Object))

매개 변수

type
Type

반환할 개체의 Lazy<T,TMetadata> 형식 매개 변수입니다.

metadataViewType
Type

반환할 개체의 Lazy<T,TMetadata> 메타데이터 뷰 형식입니다.

contractName
String

반환할 개체의 Lazy<T,TMetadata> 계약 이름 또는 null 기본 계약 이름을 사용할 빈 문자열("")입니다.

반환

계약 일치에 Lazy<T,TMetadata> 대한 모든 개체의 컬렉션입니다 contractName.

예외

개체가 CompositionContainer 삭제되었습니다.

typenull입니다.

metadataViewType 가 유효한 메타데이터 뷰 형식이 아닌 경우

설명

기본 계약 이름은 메서드를 호출한 GetContractName 결과입니다 type.

계약 이름은 대/소문자를 구분하는 비언어적 비교를 수행하기 위해 속성을 사용하여 Ordinal 비교됩니다.

적용 대상

GetExports<T,TMetadataView>()

Source:
ExportProvider.GetExportOverrides.cs
Source:
ExportProvider.GetExportOverrides.cs
Source:
ExportProvider.GetExportOverrides.cs
Source:
ExportProvider.GetExportOverrides.cs

지정된 형식 매개 변수에서 파생된 계약 이름을 가진 모든 내보내기를 가져옵니다.

public:
generic <typename T, typename TMetadataView>
 System::Collections::Generic::IEnumerable<Lazy<T, TMetadataView> ^> ^ GetExports();
public System.Collections.Generic.IEnumerable<Lazy<T,TMetadataView>> GetExports<T,TMetadataView>();
member this.GetExports : unit -> seq<Lazy<'T, 'MetadataView>>
Public Function GetExports(Of T, TMetadataView) () As IEnumerable(Of Lazy(Of T, TMetadataView))

형식 매개 변수

T

반환할 개체의 Lazy<T,TMetadata> 형식 매개 변수입니다. 계약 이름도 이 형식 매개 변수에서 파생됩니다.

TMetadataView

반환할 개체의 Lazy<T,TMetadata> 메타데이터 뷰 형식입니다.

반환

IEnumerable<Lazy<T,TMetadataView>>

Lazy<T,TMetadata> 계약 이름이 파생된 T개체(있는 경우)이고, 그렇지 않으면 빈 IEnumerable<T> 개체입니다.

예외

개체가 CompositionContainer 삭제되었습니다.

TMetadataView 가 유효한 메타데이터 뷰 형식이 아닌 경우

설명

계약 이름은 메서드를 호출한 GetContractName 결과입니다 T.

계약 이름은 대/소문자를 구분하는 비언어적 비교를 수행하기 위해 속성을 사용하여 Ordinal 비교됩니다.

적용 대상

GetExports<T,TMetadataView>(String)

Source:
ExportProvider.GetExportOverrides.cs
Source:
ExportProvider.GetExportOverrides.cs
Source:
ExportProvider.GetExportOverrides.cs
Source:
ExportProvider.GetExportOverrides.cs

지정된 계약 이름을 가진 모든 내보내기를 가져옵니다.

public:
generic <typename T, typename TMetadataView>
 System::Collections::Generic::IEnumerable<Lazy<T, TMetadataView> ^> ^ GetExports(System::String ^ contractName);
public System.Collections.Generic.IEnumerable<Lazy<T,TMetadataView>> GetExports<T,TMetadataView>(string? contractName);
public System.Collections.Generic.IEnumerable<Lazy<T,TMetadataView>> GetExports<T,TMetadataView>(string contractName);
member this.GetExports : string -> seq<Lazy<'T, 'MetadataView>>
Public Function GetExports(Of T, TMetadataView) (contractName As String) As IEnumerable(Of Lazy(Of T, TMetadataView))

형식 매개 변수

T

반환할 개체의 Lazy<T,TMetadata> 형식 매개 변수입니다. 계약 이름도 이 형식 매개 변수에서 파생됩니다.

TMetadataView

반환할 개체의 Lazy<T,TMetadata> 메타데이터 뷰 형식입니다.

매개 변수

contractName
String

반환할 개체의 Lazy<T,TMetadata> 계약 이름 또는 null 기본 계약 이름을 사용할 빈 문자열("")입니다.

반환

IEnumerable<Lazy<T,TMetadataView>>

Lazy<T,TMetadata> 지정된 계약 이름을 가진 개체(있는 경우)이고, 그렇지 않으면 빈 IEnumerable<T> 개체입니다.

예외

개체가 CompositionContainer 삭제되었습니다.

TMetadataView 가 유효한 메타데이터 뷰 형식이 아닌 경우

설명

기본 계약 이름은 메서드를 호출한 GetContractName 결과입니다 T.

계약 이름은 대/소문자를 구분하는 비언어적 비교를 수행하기 위해 속성을 사용하여 Ordinal 비교됩니다.

적용 대상

GetExports<T>()

Source:
ExportProvider.GetExportOverrides.cs
Source:
ExportProvider.GetExportOverrides.cs
Source:
ExportProvider.GetExportOverrides.cs
Source:
ExportProvider.GetExportOverrides.cs

지정된 형식 매개 변수에서 파생된 계약 이름을 가진 모든 내보내기를 가져옵니다.

public:
generic <typename T>
 System::Collections::Generic::IEnumerable<Lazy<T> ^> ^ GetExports();
public System.Collections.Generic.IEnumerable<Lazy<T>> GetExports<T>();
member this.GetExports : unit -> seq<Lazy<'T>>
Public Function GetExports(Of T) () As IEnumerable(Of Lazy(Of T))

형식 매개 변수

T

반환할 개체의 Lazy<T> 형식 매개 변수입니다. 계약 이름도 이 형식 매개 변수에서 파생됩니다.

반환

Lazy<T> 계약 이름이 파생된 T개체(있는 경우)이고, 그렇지 않으면 빈 IEnumerable<T> 개체입니다.

예외

개체가 CompositionContainer 삭제되었습니다.

설명

계약 이름은 메서드를 호출한 GetContractName 결과입니다 T.

계약 이름은 대/소문자를 구분하는 비언어적 비교를 수행하기 위해 속성을 사용하여 Ordinal 비교됩니다.

적용 대상

GetExports<T>(String)

Source:
ExportProvider.GetExportOverrides.cs
Source:
ExportProvider.GetExportOverrides.cs
Source:
ExportProvider.GetExportOverrides.cs
Source:
ExportProvider.GetExportOverrides.cs

지정된 계약 이름을 가진 모든 내보내기를 가져옵니다.

public:
generic <typename T>
 System::Collections::Generic::IEnumerable<Lazy<T> ^> ^ GetExports(System::String ^ contractName);
public System.Collections.Generic.IEnumerable<Lazy<T>> GetExports<T>(string? contractName);
public System.Collections.Generic.IEnumerable<Lazy<T>> GetExports<T>(string contractName);
member this.GetExports : string -> seq<Lazy<'T>>
Public Function GetExports(Of T) (contractName As String) As IEnumerable(Of Lazy(Of T))

형식 매개 변수

T

반환할 개체의 Lazy<T> 형식 매개 변수입니다.

매개 변수

contractName
String

반환할 개체의 Lazy<T> 계약 이름 또는 null 기본 계약 이름을 사용할 빈 문자열("")입니다.

반환

Lazy<T> 지정된 계약 이름을 가진 개체(있는 경우)이고, 그렇지 않으면 빈 IEnumerable<T> 개체입니다.

예외

개체가 CompositionContainer 삭제되었습니다.

설명

기본 계약 이름은 메서드를 호출한 GetContractName 결과입니다 T.

계약 이름은 대/소문자를 구분하는 비언어적 비교를 수행하기 위해 속성을 사용하여 Ordinal 비교됩니다.

적용 대상