Click or drag to resize

VersionFormats Enumeration

Chooses which items GetVersionString(VersionFormats) should display.

Namespace: InnerDrive.Core
Assembly: InnerDrive.Core (in InnerDrive.Core.dll) Version: 5.0.8475.0
Syntax
C#
[SerializableAttribute]
[FlagsAttribute]
public enum VersionFormats
Members
Member nameValueDescription
None0Returns nothing at all.
Name1Returns the name of the assembly.
Title2Returns the full title of the assembly.
Major4Returns the major version number of the assembly.
Minor8Returns the minor version number of the assembly.
MajorMinor12Returns both the major and minor version numbers of the assembly. Equivalent to Major + Minor.
Build16Returns the build ID of the assembly.
Revision32Returns the revision number of the assembly.
Copyright64Returns copyright information from the assembly.
Description128Returns the description of the assembly.
Configuration256Returns the configuration designation of the assembly.
RuntimeVersion512Returns the currently-executing Common Language Runtime version.
LongVersion828Returns the entire version number (major, minor, build, revision) of the assembly.
TimeStamp1,024Returns the UTC time stamp (if available) from the PE header
All2,046Returns all version information from the assembly.
Example
To show just the major and minor version numbers plus the copyright string:
C#
var versionInfo = new VersionInfo();
var versionFormat = VersionFormats.MajorMinor | VersionFormats.Copyright;

var version = GetVersionString(versionFormat);

// Returns:
// 
// 3.1
// Copyright ©2014 Inner Drive Technology. All rights reserved.
See Also