IExtenderSite.NotifyDelete Method
Called by an automation extender to notify its site when it is being destroyed. If you fail to call this method, Visual Studio may crash.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
Sub NotifyDelete ( _
Cookie As Integer _
)
'Usage
Dim instance As IExtenderSite
Dim Cookie As Integer
instance.NotifyDelete(Cookie)
void NotifyDelete(
int Cookie
)
void NotifyDelete(
[InAttribute] int Cookie
)
function NotifyDelete(
Cookie : int
)
Parameters
Cookie
Type: System.Int32Required. The cookie identifying the extender. This is passed to the extender provider when it is asked for the extender.
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Other Resources
Implementing and Using Automation Extenders
Change History
Date |
History |
Reason |
---|---|---|
Added warning about calling NotifyDelete |
Content bug fix. |