Partager via


OleComponent.DisposeManagedResources Method

Disposes of this object, calling FRevokeComponent if our manager field is non-null and our componentCookie field is not 0.

Namespace:  Microsoft.VisualStudio.PlatformUI.OleComponentSupport
Assembly:  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

'Déclaration
Protected Overrides Sub DisposeManagedResources
'Utilisation

Me.DisposeManagedResources()
protected override void DisposeManagedResources()
protected:
virtual void DisposeManagedResources() override
abstract DisposeManagedResources : unit -> unit 
override DisposeManagedResources : unit -> unit 
protected override function DisposeManagedResources()

Exceptions

Exception Condition
ComponentRevocationFailedException

Can throw this exception if we were constructed with an IOleComponentManager, have a non-zero component cookie (meaning we are registered) and our call to FRevokeComponent returns FALSE (0).

.NET Framework Security

See Also

Reference

OleComponent Class

OleComponent Members

Microsoft.VisualStudio.PlatformUI.OleComponentSupport Namespace