CreateExportDefinition Method

ReflectionModelServices.CreateExportDefinition Method (LazyMemberInfo, String, Lazy<IDictionary<String, Object>>, ICompositionElement)

.NET Framework (current version)
 

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

Namespace:   System.ComponentModel.Composition.ReflectionModel
Assembly:  System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)

public static ExportDefinition CreateExportDefinition(
	LazyMemberInfo exportingMember,
	string contractName,
	Lazy<IDictionary<string, object>> metadata,
	ICompositionElement origin
)

Parameters

exportingMember
Type: System.ComponentModel.Composition.ReflectionModel.LazyMemberInfo

The member to export.

contractName
Type: System.String

The contract name to use for the export.

metadata
Type: System.Lazy<IDictionary<String, Object>>

The metadata for the export.

origin
Type: System.ComponentModel.Composition.Primitives.ICompositionElement

The object that the export originates from.

Return Value

Type: System.ComponentModel.Composition.Primitives.ExportDefinition

An export definition created from the specified parameters.

.NET Framework
Available since 4.0
Silverlight
Available since 4.0
Return to top
Show:
© 2016 Microsoft