DkmClrRuntimeInstance.BindMethodToObject 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 bind the method described by Token and Module to this object.
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 BindMethodToObject (Microsoft.VisualStudio.Debugger.CallStack.DkmStackWalkFrame StackFrame, ulong Address, Microsoft.VisualStudio.Debugger.Clr.DkmClrModuleInstance Module, int Token, out Microsoft.VisualStudio.Debugger.Clr.DkmClrType ImplementationType, out int ResolvedToken);
member this.BindMethodToObject : Microsoft.VisualStudio.Debugger.CallStack.DkmStackWalkFrame * uint64 * Microsoft.VisualStudio.Debugger.Clr.DkmClrModuleInstance * int * DkmClrType * int -> unit
Public Sub BindMethodToObject (StackFrame As DkmStackWalkFrame, Address As ULong, Module As DkmClrModuleInstance, Token As Integer, ByRef ImplementationType 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.
- Address
- UInt64
[In] The address of the object to bind.
- Module
- DkmClrModuleInstance
[In] The module that contains the given token.
- Token
- Int32
[In] The token representing the member field or method.
- ImplementationType
- DkmClrType
[Out] The type that has the implementation of the given token. The implementation type may not be the same as this type in the case of inheritance.
- ResolvedToken
- Int32
[Out] The token representing the method definition for the bound member.
Exceptions
If the given token does not represent a method, the given address does not represent a CLR object, or the token could not be resolved using the given module.
If the member could not be bound to this type.