Freigeben über


ImportManyAttribute.AllowRecomposition Property

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

Gets or sets a value indicating whether the decorated property or field will be recomposed when exports that provide the matching contract change.

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 for recomposition when exports that provide the same ContractName are added or removed from the CompositionContainer; otherwise, false.
The default value 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.