Sdílet prostřednictvím


RoutingAddress.CompareTo Method (RoutingAddress)

The CompareTo method compares this instance of the RoutingAddress structure with the specified object.

Namespace: Microsoft.Exchange.Data.Transport
Assembly: Microsoft.Exchange.Data.Transport (in microsoft.exchange.data.transport.dll)

Syntax

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

Parameters

  • address
    An instance of the RoutingAddress structure against which to compare.

Return Value

The following table lists the return values for the CompareTo method.

Value

Meaning

Less than zero

The address value of this instance of the RoutingAddress structure is less than the address value of the RoutingAddress structure specified.

Zero

The address value of this instance of the RoutingAddress structure is equal to the address value of the RoutingAddress structure specified.

Greater than zero

The address value of this instance of the RoutingAddress structure is greater than the address value of the RoutingAddress structure specified.

Remarks

The CompareTo method is not case sensitive.

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 XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows Server 2003