DkmClrModuleInstance.TryResolveToken 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.
Attempts to resolve a token from within this module's scope to the defining module.
Location constraint: API must be called from a Monitor component (component level < 100,000).
This API was introduced in Visual Studio 17 Update 8 (DkmApiVersion.VS17Update8).
public void TryResolveToken (Microsoft.VisualStudio.Debugger.CallStack.DkmStackWalkFrame StackFrame, int Token, out Microsoft.VisualStudio.Debugger.Clr.DkmClrType? OwningType, out int ResolvedToken);
member this.TryResolveToken : Microsoft.VisualStudio.Debugger.CallStack.DkmStackWalkFrame * int * DkmClrType * int -> unit
Public Sub TryResolveToken (StackFrame As DkmStackWalkFrame, Token As Integer, ByRef OwningType As DkmClrType, ByRef ResolvedToken As Integer)
Parameters
- StackFrame
- DkmStackWalkFrame
[In] The stack frame used to interpret the given token. This is necessary for resolving generics.
- Token
- Int32
[In] The token to resolve.
- OwningType
- DkmClrType
[Out,Optional] A DkmClrType for the type that owns the token. For example, if the token represents a member, the OwningType will be the type that declares the member. If the token represents a type, then the OwningType will represent the type itself. Note, if the type is a type reference, then the module that contains the type may not yet be loaded, in which case the type will resolve to null.
- ResolvedToken
- Int32
[Out] The resolved token. May be zero if the module containing the owning type has not yet been loaded.