Share via


ILocalRegistry4.RevokeClassObject(UInt32) Method

Definition

Revokes a registered class object.

public:
 int RevokeClassObject(System::UInt32 dwCookie);
public:
 int RevokeClassObject(unsigned int dwCookie);
int RevokeClassObject(unsigned int dwCookie);
public int RevokeClassObject (uint dwCookie);
abstract member RevokeClassObject : uint32 -> int
Public Function RevokeClassObject (dwCookie As UInteger) As Integer

Parameters

dwCookie
UInt32

The class object to revoke.

Returns

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  
);  

Applies to