ReflectionModelServices.CreateExportDefinition Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Public Shared Function CreateExportDefinition ( _
    exportingMember As LazyMemberInfo, _
    contractName As String, _
    metadata As Lazy(Of IDictionary(Of String, Object)), _
    origin As ICompositionElement _
) As ExportDefinition
public static ExportDefinition CreateExportDefinition(
    LazyMemberInfo exportingMember,
    string contractName,
    Lazy<IDictionary<string, Object>> metadata,
    ICompositionElement origin
)

Parameters

  • contractName
    Type: System.String
    The contract name to use for the export.

Return Value

Type: System.ComponentModel.Composition.Primitives.ExportDefinition
An export definition created from the specified parameters.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.