Freigeben über


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: UInt32

    The class object to revoke.

Return Value

Type: 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

See Also

Reference

ILocalRegistry4 Interface

Microsoft.VisualStudio.Shell.Interop Namespace