UnregisterTypeForComClients Method

RegistrationServices.UnregisterTypeForComClients Method

Note: This method is new in the .NET Framework version 2.0.

Removes references to a type registered with the RegisterTypeForComClients method.

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)

[ComVisibleAttribute(false)] 
public virtual void UnregisterTypeForComClients (
	int cookie
)
/** @attribute ComVisibleAttribute(false) */ 
public void UnregisterTypeForComClients (
	int cookie
)
ComVisibleAttribute(false) 
public function UnregisterTypeForComClients (
	cookie : int
)

Parameters

cookie

The cookie value returned by a previous call to the RegisterTypeForComClients method.

Note that using platform invoke to call the unmanaged CoRegisterClassObject and CoDisconnectObject methods to register and unregister COM objects is not supported.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2016 Microsoft