xtd 0.2.0
Loading...
Searching...
No Matches

◆ version() [3/5]

xtd::version::version ( int32  major,
int32  minor 
)

Initializes a new instance of the xtd::version class using the specified major and minor values.

Parameters
majorThe major version number.
minorThe minor version number.
Exceptions
xtd::out_of_range_exceptionmajor or minor is less than zero.
Remarks
This constructor creates a xtd::version object with the following property values.
Property Value
xtd::version::major major
xtd::version::minor minor
xtd::version::build undefined (-1)
xtd::version::revision undefined (-1)