Share via


ISymUnmanagedWriter::SetMethodSourceRange Method

Specifies the true start and end of a method within a source file. Use this method to specify the extent of a method independently of the sequence points that exist within the method.

HRESULT SetMethodSourceRange(
    [in] ISymUnmanagedDocumentWriter  *startDoc,
    [in] ULONG32                      startLine,
    [in] ULONG32                      startColumn,
    [in] ISymUnmanagedDocumentWriter  *endDoc,
    [in] ULONG32                      endLine,
     [in] ULONG32                      endColumn);

Parameters

  • startDoc
    [in] A pointer to the document containing the starting position.

  • startLine
    [in] The starting line number.

  • startColumn
    [in] The starting column.

  • endDoc
    [in] A pointer to the document containing the ending position.

  • endLine
    [in] The ending line number.

  • endColumn
    [in] The ending column number.

Return Value

S_OK if the method succeeds; otherwise, E_FAIL or some other error code.

Requirements

Header: CorSym.idl

See Also

Concepts

ISymUnmanagedWriter Interface