Open sandboxFocus

Method OnAdviseChildFailed

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.