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 Library。For more information about CONNECTDATA, see the MSDN Library.

當原生程式碼中的 COM 方法傳回 HRESULT 時, common language runtime 會擲回例外狀況。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) 的呼叫傳回的連接 Token。Represents a connection token that is returned from a call to Advise(Object, Int32).

pUnk pUnk pUnk pUnk

表示已連接的通知接收 (Advisory Sink) 之 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.

適用於