Show / Hide Table of Contents

Class TechVersionInfo

Описание версии.

Inheritance
object
TechVersionInfo
Implements
IComparable<TechVersionInfo>
IComparable<VersionInfo>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Ascon.Vertical.Core
Assembly: Ascon.Vertical.Core.dll
Syntax
public class TechVersionInfo : IComparable<TechVersionInfo>, IComparable<VersionInfo>

Constructors

TechVersionInfo(TechVersionInfoDto)

Создаёт новый экземпляр класса TechVersionInfo.

Declaration
public TechVersionInfo(TechVersionInfoDto dataModel)
Parameters
Type Name Description
TechVersionInfoDto dataModel

Описание версии.

TechVersionInfo(uint, uint, uint, uint)

Создаёт новый экземпляр класса TechVersionInfo.

Declaration
public TechVersionInfo(uint major, uint minor, uint patch, uint build)
Parameters
Type Name Description
uint major

Основная версия.

uint minor

Дополнительная версия.

uint patch

Номер сервис-пака.

uint build

Номер сборки.

Properties

Build

Возвращает номер сборки.

Declaration
public uint Build { get; }
Property Value
Type Description
uint

Major

Возвращает основную версию.

Declaration
public uint Major { get; }
Property Value
Type Description
uint

Minor

Возвращает дополнительную версию.

Declaration
public uint Minor { get; }
Property Value
Type Description
uint

Patch

Возвращает номер сервис-пака.

Declaration
public uint Patch { get; }
Property Value
Type Description
uint

Methods

CompareTo(VersionInfo)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

Declaration
public int CompareTo(VersionInfo other)
Parameters
Type Name Description
VersionInfo other

An object to compare with this instance.

Returns
Type Description
int

A value that indicates the relative order of the objects being compared. The return value has these meanings:

Value Meaning
Less than zero This instance precedes other in the sort order.
Zero This instance occurs in the same position in the sort order as other.
Greater than zero This instance follows other in the sort order.

CompareTo(VersionInfo, ushort)

Сравнивает версию с указанной версией.

Declaration
public int CompareTo(VersionInfo other, ushort level)
Parameters
Type Name Description
VersionInfo other

Версия с которой производится сравнение.

ushort level

Уровень сравнения.

Returns
Type Description
int

-1 если версия меньше указанной, 0 если версии равны, 1 если версия больше указанной.

CompareTo(TechVersionInfoDto, ushort)

Сравнивает версию с указанной версией.

Declaration
public int CompareTo(TechVersionInfoDto other, ushort level)
Parameters
Type Name Description
TechVersionInfoDto other

Версия с которой производится сравнение.

ushort level

Уровень сравнения.

Returns
Type Description
int

-1 если версия меньше указанной, 0 если версии равны, 1 если версия больше указанной.

CompareTo(TechVersionInfo?)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

Declaration
public int CompareTo(TechVersionInfo? other)
Parameters
Type Name Description
TechVersionInfo other

An object to compare with this instance.

Returns
Type Description
int

A value that indicates the relative order of the objects being compared. The return value has these meanings:

Value Meaning
Less than zero This instance precedes other in the sort order.
Zero This instance occurs in the same position in the sort order as other.
Greater than zero This instance follows other in the sort order.

CompareTo(TechVersionInfo?, ushort)

Сравнивает версию с указанной версией.

Declaration
public int CompareTo(TechVersionInfo? other, ushort level)
Parameters
Type Name Description
TechVersionInfo other

Версия с которой производится сравнение.

ushort level

Уровень сравнения.

Returns
Type Description
int

-1 если версия меньше указанной, 0 если версии равны, 1 если версия больше указанной.

ToDto()

Возвращает описание версии.

Declaration
public TechVersionInfoDto ToDto()
Returns
Type Description
TechVersionInfoDto

Сформированное описание.

ToString()

Возвращает полное строковое представление версии.

Declaration
public override string ToString()
Returns
Type Description
string

Строковое представление версии.

Overrides
object.ToString()

Implements

IComparable<T>
IComparable<T>
Back to top Copyright © 2014 - 2026 ООО «АСКОН-Бизнес-решения»