Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IConnectionPoint.Advise Method

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

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

void Advise(
	Object pUnkSink,
	out int pdwCookie
)

Parameters

pUnkSink
Type: System.Object

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

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1
Show:
© 2015 Microsoft