Udostępnij za pośrednictwem


IScope::Narrow Method

Returns the innermost name that encloses a certain location's line and column index.

HRESULT Narrow ( 
   long line,
   long idx,
   BSTR* name,
   long* startLine
);

Parameters

  • line
    [in] Specifies the line.

  • idx
    [in] Specifies the column index position.

  • name
    [out] Pointer to the innermost name at the specified location.

  • startLine
    [out] Returns the line number where the scope of the name parameter begins.

Return Value

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

Remarks

This method is called by the debugger to obtain the scope in which a breakpoint is set.

See Also

Reference

IScope Interface