共用方式為


/CLRHEADER

 

The latest version of this topic can be found at -CLRHEADER.

CLRHEADER file

  
## Remarks  
 where:  
  
 `file`  
 An image file built with [/clr](../Topic/-clr%20\(Common%20Language%20Runtime%20Compilation\).md).  
  
## Remarks  
 CLRHEADER displays information about the .NET headers used in any managed program. The output shows the location and size, in bytes, of the .NET header and sections in the header.  
  
 Only the [/HEADERS](../Topic/-HEADERS.md) DUMPBIN option is available for use on files produced with the [/GL](../Topic/-GL%20\(Whole%20Program%20Optimization\).md) compiler option.  
  
 When /CLRHEADER is used on a file that was compiled with /clr, there will be a **clr Header:** section in the dumpbin output.  The value of **flags** indicates which /clr option was used:  
  
-  0  -- /clr (image may contain native code).  
  
-  1 -- /clr:safe (image is MSIL only, able to run on any CLR platform, and possibly verifiable).  
  
-  3 -- /clr:pure (image is MSIL only, but only able to run on x86 platforms).  
  
 You can also programmatically check if an image was built for the common language runtime.  For more information, see [How to: Determine if an Image is Native or CLR](../Topic/How%20to:%20Determine%20if%20an%20Image%20is%20Native%20or%20CLR.md).  
  
## See Also  
 [DUMPBIN Options](../Topic/DUMPBIN%20Options.md)