ExportProvider.GetExports 메서드

정의

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

오버로드

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

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

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이고, 지정한 Export의 조건과 일치하는 ImportDefinition 개체가 없습니다.

또는

CardinalityZeroOrOne 또는 ExactlyOne이고, 지정한 Export의 조건과 일치하는 ImportDefinition 개체가 두 개 이상 있습니다.

definition이(가) null인 경우

적용 대상

GetExports(ImportDefinition, AtomicComposition)

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

컴퍼지션의 트랜잭션 컨테이너입니다.

반환

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

예외

CardinalityExactlyOne이고, 지정한 Export의 조건과 일치하는 ImportDefinition 개체가 없습니다.

또는

CardinalityZeroOrOne 또는 ExactlyOne이고, 지정한 Export의 조건과 일치하는 ImportDefinition 개체가 두 개 이상 있습니다.

definition이(가) null인 경우

또는

atomicComposition이(가) null인 경우

적용 대상

GetExports(Type, Type, String)

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이거나 빈 문자열("")입니다.

반환

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

예외

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

type이(가) null인 경우

metadataViewType가 유효한 메타데이터 보기 형식이 아닙니다.

설명

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

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

적용 대상

GetExports<T,TMetadataView>()

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>>

T에서 파생된 계약 이름을 갖는 Lazy<T,TMetadata> 개체(있는 경우)이거나, 비어 있는 IEnumerable<T> 개체입니다.

예외

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

TMetadataView가 유효한 메타데이터 보기 형식이 아닙니다.

설명

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

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

적용 대상

GetExports<T,TMetadataView>(String)

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

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

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> 개체의 형식 매개 변수입니다. 계약 이름은 이 형식 매개 변수에서도 파생됩니다.

반환

T에서 파생된 계약 이름을 갖는 Lazy<T> 개체(있는 경우)이거나, 비어 있는 IEnumerable<T> 개체입니다.

예외

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

설명

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

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

적용 대상

GetExports<T>(String)

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 대/소문자 구분, 비 언어적 비교를 수행 하는 속성입니다.

적용 대상