MethodDebugInformationHandle.ToDefinitionHandle Method


Returns a handle to a MethodDefinition that corresponds to this handle.

 System::Reflection::Metadata::MethodDefinitionHandle ToDefinitionHandle();
public System.Reflection.Metadata.MethodDefinitionHandle ToDefinitionHandle ();
member this.ToDefinitionHandle : unit -> System.Reflection.Metadata.MethodDefinitionHandle
Public Function ToDefinitionHandle () As MethodDefinitionHandle


A method definition handle that corresponds to this handle.


The returned handle is only valid within the context of a MetadataReader open on the type system metadata blob, which in the case of a standalone PDB file is a different reader than the one containing this method debug information.

Applies to