แก้ไข

แชร์ผ่าน


Version.LessThan(Version, Version) Operator

Definition

Determines whether the first specified Version object is less than the second specified Version object.

public:
 static bool operator <(Version ^ v1, Version ^ v2);
public static bool operator < (Version v1, Version v2);
public static bool operator < (Version? v1, Version? v2);
static member ( < ) : Version * Version -> bool
Public Shared Operator < (v1 As Version, v2 As Version) As Boolean

Parameters

v1
Version

The first Version object.

v2
Version

The second Version object.

Returns

true if v1 is less than v2; otherwise, false.

Exceptions

.NET Framework only: v1 is null.

Remarks

The equivalent method for this operator is Version.CompareTo(Object)

Applies to

See also