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