Version.LessThanOrEqual(Version, Version) 运算符

定义

确定指定的第一个 Version 对象是否小于或等于第二个 Version 对象。Determines whether the first specified Version object is less than or equal to the second Version object.

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

参数

v1
Version

第一个 Version 对象。The first Version object.

v2
Version

第二个 Version 对象。The second Version object.

返回

如果 true 小于等于 v1,则为 v2;否则为 falsetrue if v1 is less than or equal to v2; otherwise, false.

异常

v1nullv1 is null.

注解

此运算符的等效方法是 Version.CompareTo(Object)The equivalent method for this operator is Version.CompareTo(Object)

适用于

另请参阅