다음을 통해 공유


ReflectionModelServices.CreatePartDefinition 메서드

정의

지정된 파트 형식, 가져오기, 내보내기, 메타데이터 및 원본을 사용하여 파트 정의를 만듭니다.

public:
 static System::ComponentModel::Composition::Primitives::ComposablePartDefinition ^ CreatePartDefinition(Lazy<Type ^> ^ partType, bool isDisposalRequired, Lazy<System::Collections::Generic::IEnumerable<System::ComponentModel::Composition::Primitives::ImportDefinition ^> ^> ^ imports, Lazy<System::Collections::Generic::IEnumerable<System::ComponentModel::Composition::Primitives::ExportDefinition ^> ^> ^ exports, Lazy<System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^> ^ metadata, System::ComponentModel::Composition::Primitives::ICompositionElement ^ origin);
public static System.ComponentModel.Composition.Primitives.ComposablePartDefinition CreatePartDefinition (Lazy<Type> partType, bool isDisposalRequired, Lazy<System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.ImportDefinition>> imports, Lazy<System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.ExportDefinition>> exports, Lazy<System.Collections.Generic.IDictionary<string,object>> metadata, System.ComponentModel.Composition.Primitives.ICompositionElement origin);
public static System.ComponentModel.Composition.Primitives.ComposablePartDefinition CreatePartDefinition (Lazy<Type> partType, bool isDisposalRequired, Lazy<System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.ImportDefinition>>? imports, Lazy<System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.ExportDefinition>>? exports, Lazy<System.Collections.Generic.IDictionary<string,object?>>? metadata, System.ComponentModel.Composition.Primitives.ICompositionElement? origin);
static member CreatePartDefinition : Lazy<Type> * bool * Lazy<seq<System.ComponentModel.Composition.Primitives.ImportDefinition>> * Lazy<seq<System.ComponentModel.Composition.Primitives.ExportDefinition>> * Lazy<System.Collections.Generic.IDictionary<string, obj>> * System.ComponentModel.Composition.Primitives.ICompositionElement -> System.ComponentModel.Composition.Primitives.ComposablePartDefinition
Public Shared Function CreatePartDefinition (partType As Lazy(Of Type), isDisposalRequired As Boolean, imports As Lazy(Of IEnumerable(Of ImportDefinition)), exports As Lazy(Of IEnumerable(Of ExportDefinition)), metadata As Lazy(Of IDictionary(Of String, Object)), origin As ICompositionElement) As ComposablePartDefinition

매개 변수

partType
Lazy<Type>

파트의 형식입니다.

isDisposalRequired
Boolean

파트에 삭제가 필요하면 true이고, 그렇지 않으면 false입니다.

imports
Lazy<IEnumerable<ImportDefinition>>

파트 가져오기의 컬렉션입니다.

exports
Lazy<IEnumerable<ExportDefinition>>

파트 내보내기의 컬렉션입니다.

metadata
Lazy<IDictionary<String,Object>>

파트의 메타데이터입니다.

origin
ICompositionElement

파트의 원본입니다.

반환

지정된 매개 변수에서 만들어진 파트 정의입니다.

적용 대상