CONNECTDATA 结构

定义

描述与给定连接点存在的连接。Describes a connection that exists to a given connection point.

public value class CONNECTDATA
public struct CONNECTDATA
type CONNECTDATA = struct
Public Structure CONNECTDATA
继承
CONNECTDATA

注解

CONNECTDATA 结构是通过 IEnumConnections.Next 方法枚举的类型。The CONNECTDATA structure is the type enumerated through the IEnumConnections.Next method.

有关 CONNECTDATA的详细信息,请参阅 MSDN Library。For more information about CONNECTDATA, see the MSDN Library.

当本机代码中的 COM 方法返回 HRESULT 时,公共语言运行时将引发异常。The common language runtime throws an exception when a COM method in native code returns an HRESULT. 有关更多信息,请参见 How to: Map HRESULTs and ExceptionsFor more information, see How to: Map HRESULTs and Exceptions.

字段

dwCookie

表示从 Advise(Object, Int32) 调用中返回的连接标记。Represents a connection token that is returned from a call to Advise(Object, Int32).

pUnk

表示指向已连接的通知接收器上的 IUnknown 接口的指针。Represents a pointer to the IUnknown interface on a connected advisory sink. 当不再需要 IUnknown::Release 结构时,调用方必须在此指针上调用 CONNECTDATAThe caller must call IUnknown::Release on this pointer when the CONNECTDATA structure is no longer needed.

适用于