ImportAttribute::AllowDefault Property
.NET Framework (current version)
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.Composition.AttributedModel (in System.Composition.AttributedModel.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 contract name in the host container; otherwise, false. The default is false.
Show: