Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 892 Bytes

idialinenumber-get-linenumber.md

File metadata and controls

48 lines (35 loc) · 892 Bytes
description title ms.date ms.topic dev_langs helpviewer_keywords author ms.author manager ms.subservice
Retrieves the line number in the source file.
IDiaLineNumber::get_lineNumber
11/04/2016
reference
C++
IDiaLineNumber::get_lineNumber method
mikejo5000
mikejo
mijacobs
debug-diagnostics

IDiaLineNumber::get_lineNumber

Retrieves the line number in the source file.

Syntax

HRESULT get_lineNumber ( 
   DWORD* pRetVal
);

Parameters

pRetVal

[out] Returns the line number in the source file.

Return Value

If successful, returns S_OK. Returns S_FALSE if this property is not supported. Otherwise, returns an error code.

Example

CComPtr< IDiaLineNumber> pLine;
DWORD linenum;
pLine->get_lineNumber( &linenum );

See also