Compartilhar via


IntelliTraceModule.GetSourceLocation Method

Gets the location in source for the specified common-language-runtime method token and offset into the method.

Namespace:  Microsoft.VisualStudio.IntelliTrace
Assembly:  Microsoft.VisualStudio.IntelliTrace (in Microsoft.VisualStudio.IntelliTrace.dll)

Syntax

'Declaração
Public Function GetSourceLocation ( _
    metadataToken As Integer, _
    offset As Integer _
) As IntelliTraceSourceLocation
public IntelliTraceSourceLocation GetSourceLocation(
    int metadataToken,
    int offset
)
public:
IntelliTraceSourceLocation^ GetSourceLocation(
    int metadataToken, 
    int offset
)
member GetSourceLocation : 
        metadataToken:int * 
        offset:int -> IntelliTraceSourceLocation 
public function GetSourceLocation(
    metadataToken : int, 
    offset : int
) : IntelliTraceSourceLocation

Parameters

  • offset
    Type: System.Int32
    The intermediate-language offset into the method.

Return Value

Type: Microsoft.VisualStudio.IntelliTrace.IntelliTraceSourceLocation
An IntelliTraceSourceLocation that contains the file name and source code range for the statement at the specified offset.

.NET Framework Security

See Also

Reference

IntelliTraceModule Class

Microsoft.VisualStudio.IntelliTrace Namespace