FileVersionInfo : FileVersionInfo : File Directory Stream C# Examples


C# Examples » File Directory Stream » FileVersionInfo »

 

FileVersionInfo









    
using  System;
using  System.Diagnostics;

static  class  MainClass
{
        static  void  Main(string[]  args)
        {

                FileVersionInfo  info  =  FileVersionInfo.GetVersionInfo("c:\\test.txt");

                //  Display  version  information.
                Console.WriteLine("Checking  File:  "  +  info.FileName);
                Console.WriteLine("IsDebug:  "  +  info.IsDebug);
                Console.WriteLine("IsPatched:  "  +  info.IsPatched);
                Console.WriteLine("IsPreRelease:  "  +  info.IsPreRelease);
                Console.WriteLine("IsPrivateBuild:  "  +  info.IsPrivateBuild);
                Console.WriteLine("IsSpecialBuild:  "  +  info.IsSpecialBuild);
        }
}
    
   
  
   



Output

Checking File: c:\test.txt
IsDebug: False
IsPatched: False
IsPreRelease: False
IsPrivateBuild: False
IsSpecialBuild: False


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo File Directory Stream
» FileVersionInfo