Tm1Version
using Skipcheck.Tm1.Client.Version;Used in the walkthroughs Connect and list your cubes, Test your code against a real TM1.
A TM1 server version, as reported by Server.ProductVersion (read through
Tm1Session.VersionAsync()).
TM1 reports versions as dot-separated numbers, such as 11.8.03500.6. Each part
is compared numerically, so 11.8.03500.6 equals 11.8.3500.6, and a
shorter version is treated as if padded with zeros: 11.8 equals
11.8.0.0. ToString returns the text exactly as parsed, leading zeros
included.
This is the TM1 server build number, not the Planning Analytics release number (such as
2.1.19) or the REST API schema version in $metadata (such as
11.8.35).
Members
Parse static | Parses a version such as 11.8.03500.6. |
IsAtLeast | True if this version is the same as or newer than other. |
IsBefore | True if this version is older than other. |
CompareTo | |
Equals | |
Equals | |
GetHashCode | |
ToString | The version exactly as parsed, such as 11.8.03500.6. |
operator static | True if both are the same version, part by part. |
Parse
staticTm1Version Parse(string text)Parses a version such as 11.8.03500.6. Surrounding whitespace is
ignored.
Throws
ArgumentException- The text isn't dot-separated numbers.
IsAtLeast
bool IsAtLeast(Tm1Version other)True if this version is the same as or newer than
other.
IsBefore
bool IsBefore(Tm1Version other)True if this version is older than other.
CompareTo
int CompareTo(Tm1Version? other)Equals
bool Equals(Tm1Version? other)Equals
bool Equals(object? obj)GetHashCode
int GetHashCode()ToString
string ToString()The version exactly as parsed, such as 11.8.03500.6.
operator
staticbool operatorTrue if both are the same version, part by part: 11.8 equals 11.8.0.0.