ISymbolMethod.GetSourceStartEnd(ISymbolDocument[], Int32[], Int32[]) Method

Definition

Gets the start and end positions for the source of the current method.

C#
public bool GetSourceStartEnd(System.Diagnostics.SymbolStore.ISymbolDocument[]? docs, int[]? lines, int[]? columns);
C#
public bool GetSourceStartEnd(System.Diagnostics.SymbolStore.ISymbolDocument[] docs, int[] lines, int[] columns);

Parameters

docs
ISymbolDocument[]

The starting and ending source documents.

lines
Int32[]

The starting and ending lines in the corresponding source documents.

columns
Int32[]

The starting and ending columns in the corresponding source documents.

Returns

true if the positions were defined; otherwise, false.

Remarks

The first array position is the start, and the second is the end.

Applies to

Tuote Versiot
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1