Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Model Namespace / Child­Attribute Class / Child­Attribute Properties / Child­Attribute.​Disable­Behavior­Propagation Property

ChildAttribute.DisableBehaviorPropagation Property

Determines whether the behaviors applied to the declaring type of the target field should be applied to the object assigned this field. The default value of this property is false, which means that behaviors such as Recordable or threading models will be applied to children (resulting in build- or run-time exception if it is not possible). When it is set to true, behaviors will not be propagated. When applied to a field of collection type, the value applies to collection items.

Namespace:  PostSharp.Patterns.Model
Assembly:  PostSharp.Patterns.Aggregation (in PostSharp.Patterns.Aggregation.dll) Version: 5.0.38.0 (5.0.38.0)
Syntax
C#
public bool DisableBehaviorPropagation { get; set; }

Property Value

Type: Boolean
See Also