System.Diagnostics.SymbolStore.SymDocument.GetSourceRange C# (CSharp) Méthode

GetSourceRange() public méthode

public GetSourceRange ( int startLine, int startColumn, int endLine, int endColumn ) : byte[]
startLine int
startColumn int
endLine int
endColumn int
Résultat byte[]
        public byte[] GetSourceRange(
            int startLine, int startColumn,
            int endLine, int endColumn)
        {
            int hr;
            byte[] Range;
            int cSourceBytes;
            COMException Exception;
            hr = SymDocument_GetSourceRange(m_Document, startLine, startColumn,
                                            endLine, endColumn,
                                            0, out cSourceBytes, null);
            if (hr < 0)
            {
                Exception = new COMException("Call to GetSourceRange failed.", hr);
                throw Exception;
            }
            Range = new byte[cSourceBytes];
            hr = SymDocument_GetSourceRange(m_Document, startLine, startColumn,
                                            endLine, endColumn,
                                            cSourceBytes, out cSourceBytes, Range);
            if (hr < 0)
            {
                Exception = new COMException("Call to GetSourceRange failed.", hr);
                throw Exception;
            }
            return Range;
        }