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
- 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.