System.Net.URLClient.TCredentialsStorage.TCredentialComparer.Compare

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Compare(const Left, Right: TCredential): Integer; override;

C++

virtual int __fastcall Compare(const TCredentialsStorage::TCredential &Left, const TCredentialsStorage::TCredential &Right);

Properties

Type Visibility Source Unit Parent
function public
System.Net.URLClient.pas
System.Net.URLClient.hpp
System.Net.URLClient TCredentialComparer

Description

Compare is a generic method used to compare two values.

System.Net.URLClient.TCredentialsStorage.TCredentialComparer.Compare inherits from System.Generics.Defaults.TComparer.Compare. All content below this line refers to System.Generics.Defaults.TComparer.Compare.

Compare is a generic method used to compare two values.

Use the Compare method to compare two values of the same type. Any class that descends from TComparer is expected to implement the Compare method.

The return value of Compare must be in the following ranges.


Return value Description

Result is less than zero (<0)

Left is less than Right.

Result is equal to zero (=0)

Left is equal to Right.

Result is greater than zero (>0)

Left is greater than Right.



See Also

Code Examples