Version class Overview¶
Represents a version number. This class cannot be extended. Sealed Class
Constructor¶
|
Name |
Description |
---|---|---|
Version() |
Initializes a new instance of the Version class. |
|
Version(ver_str) |
Initializes a new instance of the Version class using the specified string to be parsed |
|
Version(ver_dict) |
Initializes a new instance of the Version class using the specified dict to be parsed. Useful for loading json |
|
Version(version) |
Initializes a new instance of the Version class using the specified version. |
|
Version(major, minor) |
Initializes a new instance of the Version class using the specified major and minor values. |
|
Version(major, minor, build) |
Initializes a new instance of the Version class using the specified major, minor, and build values. |
|
Version(major, minor, build, revision) |
Initializes a new instance of the Version class with the specified major, minor, build, and revision numbers. |
Properties¶
|
Name |
Description |
---|---|---|
Gets the value of the major component of the version number for the current Version object. |
||
Gets the value of the minor component of the version number for the current Version object. |
||
Initializes a new instance of the Version class using the specified major and minor values. |
||
Gets the value of the revision component of the version number for the current Version object. |
||
Gets the high 16 bits of the revision number. |
||
Gets the low 16 bits of the revision number. |
||
Gets the number of version elements of the current instance. |
Methods¶
|
Name |
Description |
---|---|---|
Converts the string representation of a version number to an equivalent Version object. Raises errors if input has issues. |
||
Converts the string representation of a version number to an equivalent Version object. Does not raise errors. |
||
Converts the value of the current Version object to its equivalent String representation. |
||
Converts the value of the current Version object to its equivalent String representation. A specified count indicates the number of elements to return. |
||
Converts the value of the current Version object to its equivalent tuple representation. |
||
Converts the value of the current Version object to its equivalent tuple representation. A specified count indicates the number of elements to return. |