IntelliTraceModule.GetSourceLocation(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.