Prevents third-party clients from accessing a specified service.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
This method is rarely used. Normally, once a VSPackage proffers its services, they remain available until Visual Studio is shut down. That is, the environment handles revoking services automatically.
If a service is not currently provided at the time an attempt is made to revoke it, the method will fail and return S_FALSE.
- 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.