IConnectionPoint.Advise(Object, Int32) IConnectionPoint.Advise(Object, Int32) IConnectionPoint.Advise(Object, Int32) IConnectionPoint.Advise(Object, Int32) Method

定义

在连接点和调用方的接收器对象之间建立一个通知连接。Establishes an advisory connection between the connection point and the caller's sink object.

public:
 void Advise(System::Object ^ pUnkSink, [Runtime::InteropServices::Out] int % pdwCookie);
public void Advise (object pUnkSink, out int pdwCookie);
abstract member Advise : obj *  -> unit
Public Sub Advise (pUnkSink As Object, ByRef pdwCookie As Integer)

参数

pUnkSink
Object Object Object Object

对接收器的引用,该接收器为此连接点所管理的输出接口接收调用。A reference to the sink to receive calls for the outgoing interface managed by this connection point.

pdwCookie
Int32 Int32 Int32 Int32

此方法返回时,包含连接 Cookie。When this method returns, contains the connection cookie. 此参数未经初始化即被传递。This parameter is passed uninitialized.

注解

有关详细信息,请参阅的现有文档IConnectionPoint::AdviseMSDN 库中。For more information, see the existing documentation for IConnectionPoint::Advise in the MSDN library.

适用于