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

'宣言
Function RevokeClassObject ( _
    dwCookie As UInteger _
) As Integer
'使用
Dim instance As ILocalRegistry4
Dim dwCookie As UInteger
Dim returnValue As Integer

returnValue = instance.RevokeClassObject(dwCookie)
int RevokeClassObject(
    uint dwCookie
)
int RevokeClassObject(
    unsigned int dwCookie
)
function RevokeClassObject(
    dwCookie : uint
) : int

Parameters

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

Permissions

See Also

Reference

ILocalRegistry4 Interface

ILocalRegistry4 Members

Microsoft.VisualStudio.Shell.Interop Namespace