次の方法で共有


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

パーツの元。

戻り値

指定したパラメーターから作成されたパーツ定義。

適用対象