AdoDotNetObjectMemberComparer.Compare(String, Object[], Int32, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compares one object identifier part with another specified object identifier part.
public:
override int Compare(System::String ^ typeName, cli::array <System::Object ^> ^ identifier, int identifierPart, System::Object ^ value);
public override int Compare (string typeName, object[] identifier, int identifierPart, object value);
override this.Compare : string * obj[] * int * obj -> int
Public Overrides Function Compare (typeName As String, identifier As Object(), identifierPart As Integer, value As Object) As Integer
Parameters
- typeName
- String
The name of an object type.
- identifier
- Object[]
The identifier of an object of the type specified by the typeName
parameter, represented as an array of identifier parts.
- identifierPart
- Int32
The zero-based index in the identifier array indicating which part of the identifier to compare.
- value
- Object
A value to compare the identifier part against.
Returns
An integer value less than zero if the identifier part is less than the specified value, zero if the identifier part is equal to the specified value, or greater than zero if the identifier part is greater than the specified value.