RegistrationServices.UnregisterTypeForComClients Method (Int32)

 

Removes references to a type registered with the RegisterTypeForComClients method.

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

[SecurityCriticalAttribute]
[ComVisibleAttribute(false)]
public virtual void UnregisterTypeForComClients(
	int cookie
)

Parameters

cookie
Type: System.Int32

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

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

SecurityCriticalAttribute

requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

.NET Framework
Available since 2.0
Return to top
Show: