共用方式為


IDiaSession::findLines

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Retrieves line numbers within specified compiland and source file identifiers.

Syntax

HRESULT findLines (   
   IDiaSymbol*           compiland,  
   IDiaSourceFile*       file,  
   IDiaEnumLineNumbers** ppResult  
);  

Parameters

compiland
[in]An IDiaSymbol object representing the compiland. Use this interface as a context in which to search for the line numbers.

file
[in] An IDiaSourceFile object representing the source file in which to search for the line numbers.

ppResult
[out] Returns an IDiaEnumLineNumbers object that contains a list of the line numbers retrieved.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

See Also

IDiaEnumLineNumbers
IDiaSession
IDiaSourceFile
IDiaSymbol