Parameters
- version
- Version number as a string.
Exception | Description |
---|---|
EPLAN.Harness.API.Exceptions.ArgumentException | Argument is invalid. The exception is thrown when a wrong argument is passed to the method or the setter of property. |
PartVersion partVersion1 = new PartVersion("1.0.0"); PartVersion partVersion2 = new PartVersion("1.0"); // This assignment is equivalent to previous declaration. PartVersion partVersion3 = new PartVersion("1.2.1"); bool test1 = partVersion1.IsValid(); // --> true bool test2 = partVersion2.IsValid(); // --> true bool test3 = partVersion3.IsValid(); // --> true