Sdílet prostřednictvím


IntelliTraceModule.GetSourceLocation(Int32, Int32) Method

Definition

Gets the location in source for the specified CLR method token and offset into the method.

public:
 Microsoft::VisualStudio::IntelliTrace::IntelliTraceSourceLocation ^ GetSourceLocation(int metadataToken, int offset);
public:
 Microsoft::VisualStudio::IntelliTrace::IntelliTraceSourceLocation ^ GetSourceLocation(int metadataToken, int offset);
Microsoft::VisualStudio::IntelliTrace::IntelliTraceSourceLocation GetSourceLocation(int metadataToken, int offset);
public Microsoft.VisualStudio.IntelliTrace.IntelliTraceSourceLocation GetSourceLocation (int metadataToken, int offset);
member this.GetSourceLocation : int * int -> Microsoft.VisualStudio.IntelliTrace.IntelliTraceSourceLocation
Public Function GetSourceLocation (metadataToken As Integer, offset As Integer) As IntelliTraceSourceLocation

Parameters

metadataToken
Int32

The CLR method token.

offset
Int32

The IL offset into the method.

Returns

A IntelliTraceSourceLocation that contains the file name and source code range for the statement at the specified offset. If there is no source location or the source location cannot be determined, null is returned.

Applies to