SoftwareIdentityVersionComparer.Compare Method
This element is introduced in Windows PowerShell 5.0.
Namespace: Microsoft.OneGet.Packaging
Assembly: Microsoft.OneGet (in Microsoft.OneGet.dll)
Usage
'Usage
Dim instance As SoftwareIdentityVersionComparer
Dim x As SoftwareIdentity
Dim y As SoftwareIdentity
Dim returnValue As Integer
returnValue = instance.Compare(x, y)
Syntax
'Declaration
Public Function Compare ( _
x As SoftwareIdentity, _
y As SoftwareIdentity _
) As Integer
public int Compare (
SoftwareIdentity x,
SoftwareIdentity y
)
public:
virtual int Compare (
SoftwareIdentity^ x,
SoftwareIdentity^ y
) sealed
public final int Compare (
SoftwareIdentity x,
SoftwareIdentity y
)
public final function Compare (
x : SoftwareIdentity,
y : SoftwareIdentity
) : int
Parameters
- x
- y
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
SoftwareIdentityVersionComparer Class
SoftwareIdentityVersionComparer Members
Microsoft.OneGet.Packaging Namespace