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
'Declaration
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
- metadataToken
Type: System.Int32
The CLR method token.
- 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.