IConnectionPoint.Advise Method (Object, Int32)


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

Establishes an advisory connection between the connection point and the caller's sink object.

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

void Advise(
	object pUnkSink,
	out int pdwCookie


Type: System.Object

A reference to the sink to receive calls for the outgoing interface managed by this connection point.

Type: System.Int32

When this method returns, contains the connection cookie. This parameter is passed uninitialized.

For more information, see the existing documentation for IConnectionPoint::Advise in the MSDN library.

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