PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​ModelAggregatable­Client­AttributeOn­Advise­Child­Failed
Open sandboxFocus

AggregatableClientAttribute.OnAdviseChildFailed Method

OnAdviseChildFailed(Object)

Method invoked when a child is assigned to a parent and the advices of the parent cannot be added to the child. Implementations can choose to throw an exception (thread-aware attributes do this) or ignore the situation (DisposableAttribute does this).

Declaration
protected virtual void OnAdviseChildFailed(object child)
Parameters
Type Name Description
Object child

An object that's ineligible to be a child. It's guaranteed to be non-null.