다음을 통해 공유


ExportProvider.GetExportedValues 메서드

정의

내보낸 개체를 하나 이상 가져옵니다.

오버로드

Name Description
GetExportedValues<T>(String)

지정된 계약 이름을 사용하여 내보낸 모든 개체를 가져옵니다.

GetExportedValues<T>()

지정된 형식 매개 변수에서 파생된 계약 이름을 사용하여 내보낸 모든 개체를 가져옵니다.

GetExportedValues<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<T> ^ GetExportedValues(System::String ^ contractName);
public System.Collections.Generic.IEnumerable<T> GetExportedValues<T>(string? contractName);
public System.Collections.Generic.IEnumerable<T> GetExportedValues<T>(string contractName);
member this.GetExportedValues : string -> seq<'T>
Public Function GetExportedValues(Of T) (contractName As String) As IEnumerable(Of T)

형식 매개 변수

T

반환할 내보낸 개체의 형식입니다.

매개 변수

contractName
String

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

반환

지정된 계약 이름을 가진 내보낸 개체(있는 경우)입니다. 그렇지 않으면 빈 Collection<T> 개체입니다.

예외

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

내보낸 기본 값 중 하나 이상을 으로 캐스팅 T할 수 없습니다.

컴퍼지션 중에 오류가 발생했습니다. Errors 에는 발생한 오류 컬렉션이 포함됩니다.

설명

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

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

적용 대상

GetExportedValues<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<T> ^ GetExportedValues();
public System.Collections.Generic.IEnumerable<T> GetExportedValues<T>();
member this.GetExportedValues : unit -> seq<'T>
Public Function GetExportedValues(Of T) () As IEnumerable(Of T)

형식 매개 변수

T

반환할 내보낸 개체의 형식입니다. 계약 이름도 이 형식 매개 변수에서 파생됩니다.

반환

지정된 형식 매개 변수에서 파생된 계약 이름을 가진 내보낸 개체(있는 경우)입니다. 그렇지 않으면 빈 Collection<T> 개체입니다.

예외

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

내보낸 기본 개체 중 하나 이상을 으로 캐스팅 T할 수 없습니다.

컴퍼지션 중에 오류가 발생했습니다. Errors 에는 발생한 오류 컬렉션이 포함됩니다.

설명

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

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

적용 대상