IExtenderSite.NotifyDelete(Int32) Method

Definition

Called by the automation extender to notify its site when it is being destroyed. If you fail to call this method, Visual Studio may crash.

public:
 void NotifyDelete(int Cookie);
public:
 void NotifyDelete(int Cookie);
void NotifyDelete(int Cookie);
[System.Runtime.InteropServices.DispId(1)]
public void NotifyDelete (int Cookie);
abstract member NotifyDelete : int -> unit
Public Sub NotifyDelete (Cookie As Integer)

Parameters

Cookie
Int32

Required. The cookie identifying the extender. The cookie is passed to the extender provider when it is asked for the extender.

Attributes

Remarks

Warning

The extender manager maintains an internal cache of extender objects, and must be notified when they are being destroyed. You must call NotifyDelete immediately upon destroying extender objects. You must not wait for the application to become idle, because other Visual Studio components may try to access the destroyed extender object before you call the method. If this happens, Visual Studio may crash.

Applies to