ReflectionModelServices.CreateExportDefinition Method

Definition

Creates an export definition from the specified member, with the specified contract name, metadata, and origin.

C#
public static System.ComponentModel.Composition.Primitives.ExportDefinition CreateExportDefinition(System.ComponentModel.Composition.ReflectionModel.LazyMemberInfo exportingMember, string contractName, Lazy<System.Collections.Generic.IDictionary<string,object?>> metadata, System.ComponentModel.Composition.Primitives.ICompositionElement? origin);
C#
public static System.ComponentModel.Composition.Primitives.ExportDefinition CreateExportDefinition(System.ComponentModel.Composition.ReflectionModel.LazyMemberInfo exportingMember, string contractName, Lazy<System.Collections.Generic.IDictionary<string,object>> metadata, System.ComponentModel.Composition.Primitives.ICompositionElement origin);

Parameters

exportingMember
LazyMemberInfo

The member to export.

contractName
String

The contract name to use for the export.

metadata
Lazy<IDictionary<String,Object>>

The metadata for the export.

origin
ICompositionElement

The object that the export originates from.

Returns

An export definition created from the specified parameters.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)