CompositionContext.GetExport 메서드

정의

오버로드

GetExport(CompositionContract)

지정된 계약과 일치하는 내보내기를 검색합니다.

GetExport(Type)

지정된 형식과 일치하는 내보내기를 검색합니다.

GetExport(Type, String)

지정된 이름 및 형식과 일치하는 내보내기를 검색합니다.

GetExport<TExport>()

지정된 제네릭 형식 매개 변수와 일치하는 내보내기를 검색합니다.

GetExport<TExport>(String)

지정된 제네릭 형식 매개 변수 및 계약 이름과 일치하는 내보내기를 검색합니다.

GetExport(CompositionContract)

Source:
CompositionContext.cs
Source:
CompositionContext.cs
Source:
CompositionContext.cs

지정된 계약과 일치하는 내보내기를 검색합니다.

public:
 System::Object ^ GetExport(System::Composition::Hosting::Core::CompositionContract ^ contract);
public object GetExport (System.Composition.Hosting.Core.CompositionContract contract);
member this.GetExport : System.Composition.Hosting.Core.CompositionContract -> obj
Public Function GetExport (contract As CompositionContract) As Object

매개 변수

contract
CompositionContract

일치하는 계약입니다.

반환

내보낸 값입니다.

예외

contract의 내보내기가 없습니다.

적용 대상

GetExport(Type)

Source:
CompositionContext.cs
Source:
CompositionContext.cs
Source:
CompositionContext.cs

지정된 형식과 일치하는 내보내기를 검색합니다.

public:
 System::Object ^ GetExport(Type ^ exportType);
public object GetExport (Type exportType);
member this.GetExport : Type -> obj
Public Function GetExport (exportType As Type) As Object

매개 변수

exportType
Type

일치시킬 형식입니다.

반환

내보낸 값입니다.

예외

exportType의 내보내기가 없습니다.

적용 대상

GetExport(Type, String)

Source:
CompositionContext.cs
Source:
CompositionContext.cs
Source:
CompositionContext.cs

지정된 이름 및 형식과 일치하는 내보내기를 검색합니다.

public:
 System::Object ^ GetExport(Type ^ exportType, System::String ^ contractName);
public object GetExport (Type exportType, string contractName);
member this.GetExport : Type * string -> obj
Public Function GetExport (exportType As Type, contractName As String) As Object

매개 변수

exportType
Type

일치시킬 형식입니다.

contractName
String

일치시킬 이름입니다.

반환

내보낸 값입니다.

예외

exportTypecontractName의 내보내기가 없습니다.

적용 대상

GetExport<TExport>()

Source:
CompositionContext.cs
Source:
CompositionContext.cs
Source:
CompositionContext.cs

지정된 제네릭 형식 매개 변수와 일치하는 내보내기를 검색합니다.

public:
generic <typename TExport>
 TExport GetExport();
public TExport GetExport<TExport> ();
member this.GetExport : unit -> 'Export
Public Function GetExport(Of TExport) () As TExport

형식 매개 변수

TExport

일치시킬 형식입니다.

반환

TExport

내보낸 값입니다.

예외

TExport의 내보내기가 없습니다.

적용 대상

GetExport<TExport>(String)

Source:
CompositionContext.cs
Source:
CompositionContext.cs
Source:
CompositionContext.cs

지정된 제네릭 형식 매개 변수 및 계약 이름과 일치하는 내보내기를 검색합니다.

public:
generic <typename TExport>
 TExport GetExport(System::String ^ contractName);
public TExport GetExport<TExport> (string contractName);
member this.GetExport : string -> 'Export
Public Function GetExport(Of TExport) (contractName As String) As TExport

형식 매개 변수

TExport

일치시킬 형식입니다.

매개 변수

contractName
String

일치시킬 이름입니다.

반환

TExport

내보낸 값입니다.

예외

TExportcontractName의 내보내기가 없습니다.

적용 대상