Base64Binary.Compare MethodBase64Binary.Compare MethodBase64Binary::Compare Method

Compares a byteBytebyte array with another byteBytebyte array.

Syntax

Public Shared Function Compare( _
    value1 As Byte[], _
    value2 As Byte[] _
) As Integer
public static int Compare(
    byte[] value1,
    byte[] value2
)
public:
static int Compare(
    array<byte> value1, 
    array<byte> value2
)
 

Parameters

value1

Type: System.Byte[]System.Byte()array<System::Byte>^

The first byteBytebyte array to compare.

value2

Type: System.Byte[]System.Byte()array<System::Byte>^

The second byteBytebyte array to compare.

Return Value

Type: System.Int32System.Int32System::Int32

A signed number that indicates the relative order of value1 and value2. The return value has the following meanings:

  • Less than zero indicates that value1 is less than value2.
  • Zero indicates that value1 is equal to value2.
  • Greater than zero indicates that value1 is greater than value2.