ComposablePart.SetImport(ImportDefinition, IEnumerable<Export>) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 내보내기에서 충족할 지정된 ImportDefinition 개체에 의해 설명된 가져오기를 설정합니다.
public:
abstract void SetImport(System::ComponentModel::Composition::Primitives::ImportDefinition ^ definition, System::Collections::Generic::IEnumerable<System::ComponentModel::Composition::Primitives::Export ^> ^ exports);
public abstract void SetImport(System.ComponentModel.Composition.Primitives.ImportDefinition definition, System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.Export> exports);
abstract member SetImport : System.ComponentModel.Composition.Primitives.ImportDefinition * seq<System.ComponentModel.Composition.Primitives.Export> -> unit
Public MustOverride Sub SetImport (definition As ImportDefinition, exports As IEnumerable(Of Export))
매개 변수
- definition
- ImportDefinition
설정할 가져오기를 ImportDefinitions 지정하는 속성의 개체 중 하나입니다.
- exports
- IEnumerable<Export>
에 설명definition된 가져오기를 설정할 개체의 컬렉션 Export 입니다.
예외
개체가 ComposablePart 삭제되었습니다.
개체에서 설명하는 ImportDefinition 가져오기를 설정하는 동안 오류가 발생했습니다.
definition 가 .에 있는 ImportDefinitions 속성 ComposablePart에서 시작되지 않았습니다.
-또는-
exports 에는 인 요소가 포함되어 있습니다 null.
-또는-
exports가 비어 있는 Cardinality 경우 ExactlyOne
-또는-
exports 에는 둘 이상의 요소가 포함되며 Cardinality is ZeroOrOne 또는 ExactlyOne.
SetImport(ImportDefinition, IEnumerable<Export>) 가 이전에 호출 IsRecomposable 되었으며 .입니다 false.