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::Combine Method (Object^, Guid, Int32, Delegate^)

.NET Framework (current version)
 

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

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

public:
[SecurityCriticalAttribute]
static void Combine(
	Object^ rcw,
	Guid iid,
	int dispid,
	Delegate^ d
)

Parameters

rcw
Type: System::Object^

The COM object that triggers the events the caller would like to respond 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 invoke when the COM event is fired.

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