ILocalRegistry4.RevokeClassObject Method
Revokes a registered class object.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)
Syntax
'Declaration
Function RevokeClassObject ( _
dwCookie As UInteger _
) As Integer
int RevokeClassObject(
uint dwCookie
)
int RevokeClassObject(
unsigned int dwCookie
)
abstract RevokeClassObject :
dwCookie:uint32 -> int
function RevokeClassObject(
dwCookie : uint
) : int
Parameters
dwCookie
Type: System.UInt32The class object to revoke.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
Call this method to remove the final reference on the registered object. If you neglect to call this before CoUninitialize, then COM will automatically clean up for you.
COM Signature
From vsshell90.idl:
HRESULT RevokeClassObject(
DWORD dwCookie
);
.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.