ImportAttribute.AllowRecomposition Property

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

Gets or sets a value that indicates whether the property or field will be recomposed when exports with a matching contract have changed in the container.

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

Syntax

'Declaration
Public Property AllowRecomposition As Boolean
public bool AllowRecomposition { get; set; }

Property Value

Type: System.Boolean
true if the property or field allows recomposition when exports with a matching ContractName are added or removed from the CompositionContainer; otherwise, false. The default is false.

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.