System.Diagnostics.SymbolStore.SymWriter.SetMethodSourceRange C# (CSharp) Method

SetMethodSourceRange() public method

public SetMethodSourceRange ( ISymbolDocumentWriter startDoc, int startLine, int startColumn, ISymbolDocumentWriter endDoc, int endLine, int endColumn ) : void
startDoc ISymbolDocumentWriter
startLine int
startColumn int
endDoc ISymbolDocumentWriter
endLine int
endColumn int
return void
        public void SetMethodSourceRange(
            ISymbolDocumentWriter startDoc,
            int startLine,
            int startColumn,
            ISymbolDocumentWriter endDoc,
            int endLine,
            int endColumn)
        {
            int hr;
            COMException Exception;
            hr = SymWriter_SetMethodSourceRange(m_Writer,
                                                ((SymDocumentWriter)startDoc).InternalDocumentWriter, startLine, startColumn,
                                                ((SymDocumentWriter)endDoc).InternalDocumentWriter, endLine, endColumn);
            if (hr < 0)
            {
                Exception = new COMException("Call to SetMethodSourceRange failed.", hr);
                throw Exception;
            }
        }
    }