TechnologyBase.Compare Method

Applies To: System Center Configuration Manager 2012, System Center Configuration Manager 2012

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Performs a comparison of two objects of the same type and returns a value indicating whether one object is less than, equal to, or greater than the other.

Namespace: Microsoft.ConfigurationManagement.ApplicationManagement
Assembly: Microsoft.ConfigurationManagement.ApplicationManagement (in Microsoft.ConfigurationManagement.ApplicationManagement.dll)

Usage

'Usage
Dim objA As TechnologyBase(Of T)
Dim objB As TechnologyBase(Of T)
Dim returnValue As Integer

returnValue = TechnologyBase(Of T).Compare(objA, objB)

Syntax

'Declaration
<SuppressMessageAttribute("Microsoft.Design", "CA1000:DoNotDeclareStaticMembersOnGenericTypes")> _
Public Shared Function Compare ( _
    objA As TechnologyBase(Of T), _
    objB As TechnologyBase(Of T) _
) As Integer
[SuppressMessageAttribute("Microsoft.Design", "CA1000:DoNotDeclareStaticMembersOnGenericTypes")] 
public static int Compare (
    TechnologyBase<T> objA,
    TechnologyBase<T> objB
)
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1000:DoNotDeclareStaticMembersOnGenericTypes")] 
public:
static int Compare (
    TechnologyBase<T>^ objA, 
    TechnologyBase<T>^ objB
)
/** @attribute SuppressMessageAttribute("Microsoft.Design", "CA1000:DoNotDeclareStaticMembersOnGenericTypes") */ 
public static int Compare (
    TechnologyBase<T> objA, 
    TechnologyBase<T> objB
)
SuppressMessageAttribute("Microsoft.Design", "CA1000:DoNotDeclareStaticMembersOnGenericTypes") 
public static function Compare (
    objA : TechnologyBase<T>, 
    objB : TechnologyBase<T>
) : int

Parameters

  • objA
    The first object to compare.
  • objB
    The second object to compare.

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

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms

See Also

Reference

TechnologyBase Generic Class
TechnologyBase Members
Microsoft.ConfigurationManagement.ApplicationManagement Namespace