Compartilhar via


IVsAggregatableProject2.OnAggregationFailure Method

Definition

Called if an error occurs while creating inner layers from aggregation chain after the current flavor object is being created by its factory. This should be used to disconnect any references current flavor holds to inner or outer flavor objects. OnAggregationFailure will be called individually on each flavor. Implementation should not chain the call to to inner flavor (as opposed to OnAggregationComplete which should be chained to inner). This method will not be called if all flavors layers are successfully created via PreCreateForOuter and succeeded on SetInnerProject and InitializeForOuter calls. If the error occurs later in the process ( inside OnAggregationComplete ) then IVsHierarchy::Close() will be called instead.

public:
 void OnAggregationFailure();
public:
 void OnAggregationFailure();
void OnAggregationFailure();
public void OnAggregationFailure ();
abstract member OnAggregationFailure : unit -> unit
Public Sub OnAggregationFailure ()

Applies to