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

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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)

[SecurityCriticalAttribute]
public static Delegate Remove(
	object rcw,
	Guid iid,
	int dispid,
	Delegate d
)

Parameters

rcw
Type: System.Object

The COM object the delegate is attached to.

iid
Type: System.Guid

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

dispid
Type: System.Int32

The dispatch identifier of the method on the source interface.

d
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.

SecurityCriticalAttribute

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