Delen via


INotifyObjectDisposing.Disposing Event

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Occurs when an object is being disposed.

Namespace:  Microsoft.VisualStudio.SharePoint
Assembly:  Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)

Syntax

'Declaration
Event Disposing As EventHandler
event EventHandler Disposing

Remarks

The handler for this event can be used to unsubscribe from events and release any references or resources. Most properties are still accessible in the handler for this event.

INotifyObjectDisposing complements the Disposed event where accessing any object member will cause an ObjectDisposedException error.

.NET Framework Security

See Also

Reference

INotifyObjectDisposing Interface

Microsoft.VisualStudio.SharePoint Namespace