[This is preliminary documentation and is subject to change.]

Represents a part of version information

Namespace: Tools
Assembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
public sealed class VersionPart : IFormattable, 
	IComparable<Version>, IComparable<VersionPart>, IEquatable<Version>, 
	IEquatable<VersionPart>
Visual Basic
Public NotInheritable Class VersionPart _
	Implements IFormattable, IComparable(Of Version),  _
	IComparable(Of VersionPart), IEquatable(Of Version), IEquatable(Of VersionPart)
Visual C++
public ref class VersionPart sealed : IFormattable, 
	IComparable<Version^>, IComparable<VersionPart^>, IEquatable<Version^>, 
	IEquatable<VersionPart^>
F#
[<SealedAttribute>]
type VersionPart =  
    class
        interface IFormattable
        interface IComparable<Version>
        interface IComparable<VersionPart>
        interface IEquatable<Version>
        interface IEquatable<VersionPart>
    end
JScript
public final class VersionPart implements IFormattable, IComparable<Version>, IComparable<VersionPart>, IEquatable<Version>, IEquatable<VersionPart>

Remarks

This class is intended for storing and comparing version information containing only some parts from left. Version class can be often used for this purpose, unless you wan to ommit Minor part.

IFormattable info:

This implementation of IFormattable supports following formatting strings:

Formatting stringMeaning
Null, an empty string, "G" or "g"Default formatting, same as "4"
An integral numberMaximum number of components to render. Components are rendered in following order: Major, Minor, Build, Revision. Value zero or less producess an empty string. Value greater than 4 is treated as 4.
Anything elseFormatException is thrown.

Inheritance Hierarchy

System..::..Object
  Tools..::..VersionPart

See Also

Collapse/expand Version History

1.5.3

  • This class is new in version 1.5.3