FourPartVersion.CompareTo Method (FourPartVersion)

This element is introduced in Windows PowerShell 5.0.

Namespace: Microsoft.OneGet.Utility.Versions
Assembly: Microsoft.OneGet.Utility (in Microsoft.OneGet.Utility.dll)

Usage

'Usage
Dim instance As FourPartVersion
Dim other As FourPartVersion
Dim returnValue As Integer

returnValue = instance.CompareTo(other)

Syntax

'Declaration
Public Function CompareTo ( _
    other As FourPartVersion _
) As Integer
public int CompareTo (
    FourPartVersion other
)
public:
virtual int CompareTo (
    FourPartVersion other
) sealed
public final int CompareTo (
    FourPartVersion other
)
public final function CompareTo (
    other : FourPartVersion
) : int

Parameters

  • other

Return Value

Returns Int32.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Target Platforms

See Also

Reference

FourPartVersion Structure
FourPartVersion Members
Microsoft.OneGet.Utility.Versions Namespace