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
- 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
Microsoft.VisualStudio.PlatformUI.OleComponentSupport Namespace