CONNECTDATA CONNECTDATA CONNECTDATA CONNECTDATA Struct

定义

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

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

注解

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

有关详细信息CONNECTDATA,请参阅 MSDN 库。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 dwCookie dwCookie dwCookie

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

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

适用于