ImportAttribute.AllowDefault Property
.NET Framework 4
Gets or sets a value that indicates whether the property, field, or parameter will be set to its type's default value when an export with the contract name is not present in the container.
Assembly: System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)
Property Value
Type: System.Booleantrue if the property, field, or parameter will be set to its type's default value when there is no export with the ContractName in the CompositionContainer; otherwise, false. The default is false.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.