ICorDebugThread2::GetConnectionID Method

Gets the connection identifier for this ICorDebugThread2 object.

Syntax

HRESULT GetConnectionID (
    [out] CONNID *pdwConnectionId
);

Parameters

pdwConnectionId [out] A CONNID that represents the connection identifier.

Remarks

The GetConnectionID method returns zero in the pdwConnectionId parameter, if this thread is not part of a connection.

If this thread is connected to an instance of Microsoft SQL Server 2005 Analysis Services (SSAS), the CONNID maps to a server process identifier (SPID).

Requirements

Platforms: See System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: Available since 2.0