PostSharpAPI ReferencePost­Sharp.​Patterns.​ModelChild­AttributeDisable­Behavior­Propagation
Open sandboxFocus

ChildAttribute.DisableBehaviorPropagation Property

DisableBehaviorPropagation

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.

Declaration
public bool DisableBehaviorPropagation { get; set; }
Property Value
Type Description
Boolean