NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ISymbolMethod.GetRanges

Given a position in a document, get an array of start/end offset pairs that correspond to the ranges of IL that the position covers within this method. The array is an array of integers and is [start, end, start, end]. The number of range pairs is the length of the array divided by 2.

[Visual Basic]
Function GetRanges( _
   ByVal document As ISymbolDocument, _
   ByVal line As Integer, _
   ByVal column As Integer _
) As Integer ()
[C#]
int[] GetRanges(
   ISymbolDocument document,
   int line,
   int column
);
[C++]
int* GetRanges(
   ISymbolDocument* document,
   int line,
   int column
) [] = 0;
[JScript]
function GetRanges(
   document : ISymbolDocument,
   line : int,
   column : int
) : int[];

Parameters

document
The document for which the offset is requested.
line
The document line corresponding to the ranges.
column
The document column corresponding to the ranges.

Return Value

An array of start/end offset pairs.

See Also

ISymbolMethod Interface | ISymbolMethod Members | System.Diagnostics.SymbolStore Namespace