Share via


IVsCodeDefViewContext.GetLine(UInt32, UInt32) Method

Definition

Retrieves the line position of an item based on its index in a list of context items.

public:
 int GetLine(System::UInt32 iItem, [Runtime::InteropServices::Out] System::UInt32 % piLine);
int GetLine(unsigned int iItem, [Runtime::InteropServices::Out] unsigned int & piLine);
public int GetLine (uint iItem, out uint piLine);
abstract member GetLine : uint32 * uint32 -> int
Public Function GetLine (iItem As UInteger, ByRef piLine As UInteger) As Integer

Parameters

iItem
UInt32

[in] Index of the context item.

piLine
UInt32

[out] Line number of the item in the Code Definition tool window.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsCodeDefViewContext::GetLine(  
   ULONG iItem,   
   ULONG *piLine  
);  

Applies to