Csharp/C Sharp/File Stream/FileVersionInfo — различия между версиями

Материал из .Net Framework эксперт
Перейти к: навигация, поиск
м (1 версия)
 
(нет различий)

Версия 15:31, 26 мая 2010

CompanyName

using System;
using System.Diagnostics;
class MainClass {
    static void Main(string[] args) {
        FileVersionInfo info = FileVersionInfo.GetVersionInfo("c:\\a.txt");
        Console.WriteLine("Company Name: " + info.rupanyName);
    }
}


FileDescription

using System;
using System.Diagnostics;
class MainClass {
    static void Main(string[] args) {
        FileVersionInfo info = FileVersionInfo.GetVersionInfo("c:\\a.txt");
        Console.WriteLine("File Description: " + info.FileDescription);
    }
}


FileVersion

using System;
using System.Diagnostics;
class MainClass {
    static void Main(string[] args) {
        FileVersionInfo info = FileVersionInfo.GetVersionInfo("c:\\a.txt");
        Console.WriteLine("File Version: " + info.FileVersion);
    }
}


FileVersionInfo.FileName

using System;
using System.Diagnostics;
class MainClass {
    static void Main(string[] args) {
        FileVersionInfo info = FileVersionInfo.GetVersionInfo("c:\\a.txt");
        Console.WriteLine("Checking File: " + info.FileName);
    }
}


InternalName

using System;
using System.Diagnostics;
class MainClass {
    static void Main(string[] args) {
        FileVersionInfo info = FileVersionInfo.GetVersionInfo("c:\\a.txt");
        Console.WriteLine("InternalName: " + info.InternalName);
    }
}


IsDebug

using System;
using System.Diagnostics;
class MainClass {
    static void Main(string[] args) {
        FileVersionInfo info = FileVersionInfo.GetVersionInfo("c:\\a.txt");
        Console.WriteLine("IsPatched: " + info.IsPatched);
    }
}


IsPatched

using System;
using System.Diagnostics;
class MainClass {
    static void Main(string[] args) {
        FileVersionInfo info = FileVersionInfo.GetVersionInfo("c:\\a.txt");
        Console.WriteLine("IsPatched: " + info.IsPatched);
    }
}


IsPreRelease

using System;
using System.Diagnostics;
class MainClass {
    static void Main(string[] args) {
        FileVersionInfo info = FileVersionInfo.GetVersionInfo("c:\\a.txt");
        Console.WriteLine("IsPreRelease: " + info.IsPreRelease);
    }
}


IsPrivateBuild

using System;
using System.Diagnostics;
class MainClass {
    static void Main(string[] args) {
        FileVersionInfo info = FileVersionInfo.GetVersionInfo("c:\\a.txt");
        Console.WriteLine("IsPrivateBuild: " + info.IsPrivateBuild);

    }
}


IsSpecialBuild

using System;
using System.Diagnostics;
class MainClass {
    static void Main(string[] args) {
        FileVersionInfo info = FileVersionInfo.GetVersionInfo("c:\\a.txt");
        Console.WriteLine("IsSpecialBuild: " + info.IsSpecialBuild);
    }
}


LegalCopyright

using System;
using System.Diagnostics;
class MainClass {
    static void Main(string[] args) {
        FileVersionInfo info = FileVersionInfo.GetVersionInfo("c:\\a.txt");
        Console.WriteLine("Legal Copyright: " + info.LegalCopyright);
    }
}


OriginalFilename

using System;
using System.Diagnostics;
class MainClass {
    static void Main(string[] args) {
        FileVersionInfo info = FileVersionInfo.GetVersionInfo("c:\\a.txt");
        Console.WriteLine("Original Filename: " + info.OriginalFilename);
    }
}


ProductName

using System;
using System.Diagnostics;
class MainClass {
    static void Main(string[] args) {
        FileVersionInfo info = FileVersionInfo.GetVersionInfo("c:\\a.txt");
        Console.WriteLine("Product Name: " + info.ProductName);
    }
}


ProductVersion

using System;
using System.Diagnostics;
class MainClass {
    static void Main(string[] args) {
        FileVersionInfo info = FileVersionInfo.GetVersionInfo("c:\\a.txt");
        Console.WriteLine("Product Version: " + info.ProductVersion);
    }
}