Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ComEventsHelper::Remove Method (Object^, Guid, Int32, Delegate^)

.NET Framework (current version)
 

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

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

public:
[SecurityCriticalAttribute]
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:
© 2017 Microsoft