[This is preliminary documentation and is subject to change.]
Represents a part of version information
Namespace: ToolsAssembly: 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 string | Meaning |
|---|---|
| Null, an empty string, "G" or "g" | Default formatting, same as "4" |
| An integral number | Maximum 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 else | FormatException is thrown. |
Inheritance Hierarchy
See Also
Version History
1.5.3
- This class is new in version 1.5.3