INotifyObjectDisposed.Disposed Event
Occurs when an object is disposed.
Namespace: Microsoft.VisualStudio.SharePoint
Assembly: Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)
Syntax
'Declaration
Event Disposed As EventHandler
event EventHandler Disposed
Remarks
After an object is disposed, any call to its properties or methods will throw an ObjectDisposedException error. This event can be used to remove a reference to the object that was just disposed.
Accessing any object member in this event will throw the ObjectDisposedException.
If you need to unsubscribe from events or access any other object member, consider using the Disposing event if it is available.
.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.