ComEventsHelper.Remove Method (Object, Guid, Int32, Delegate)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Removes a delegate from the invocation list of events originating from a COM object.

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

public static Delegate Remove(
	object rcw,
	Guid iid,
	int dispid,
	Delegate d


Type: System.Object

The COM object the delegate is attached to.

Type: System.Guid

The identifier of the source interface used by the COM object to trigger events.

Type: System.Int32

The dispatch identifier of the method on the source interface.

Type: System.Delegate

The delegate to remove from the invocation list.

Return Value

Type: System.Delegate

The delegate that was removed from the invocation list.


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

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top