ImportAttribute.AllowRecomposition Property

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)

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.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Portable Class Library

Supported in: Portable Class Library
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft