C# Tutorials - Herong's Tutorial Examples
∟System.Diagnostics.FileVersionInfo Class
This chapter provides tutorials and notes on System.Diagnostics.FileVersionInfo class provided by .NET Framework to retrieve version information on Portable Executable (PE) files, .exe and .dll files. Topics include introduction to FileVersionInfo; creating FileVersionInfo objects; printing out file version information properties; using Windows Explorer and PE Explorer.
What Is FileVersionInfo?
Public Properties of FileVersionInfo Class
Creating FileVersionInfo Objects
ShowFileVersionInfo.cs - Print File Version Information
Displaying Version Information using Windows Explorer
Displaying Version Information using PE Explorer
Takeaways:
- System.Diagnostics.FileVersionInfo is a .NET Framework class that be used to retrieve version information properties on Portable Executable (PE) files, .exe and .dll files.
- Static method FileVersionInfo.GetVersionInfo() should be used to create a FileVersionInfo object representing the version information stored with the specified PE file.
- PE file version information includes file version, product information, company information and other information.
- Window Explorer are PE Explorer are ready-to-use tools that can display version information of PE files.
Table of Contents
About This Book
Introduction of C# (C Sharp)
Data Type and Variables
Logical Expressions and Conditional Statements
Arrays and Loop Statements
Data Type Features
Floating-Point Data Types
Passing Parameters to Methods
Execution Environment Class
Visual C# 2010 Express Edition
Class Features
C# Compiler and Intermediate Language
Compiling C# Source Code Files
MSBuild - Microsoft Build Engine
Memory Usages of Processes
Multithreading in C#
Async Feature from C# 5
System.IO.FileInfo Class
►System.Diagnostics.FileVersionInfo Class
WPF - Windows Presentation Foundation
Partial Classes and Partial Methods
Archived Tutorials
References
Full Version in PDF/ePUB