Dela via


EndpointMetadataComparer<TMetadata>.Compare(Endpoint, Endpoint) Method

Definition

Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

public:
 virtual int Compare(Microsoft::AspNetCore::Http::Endpoint ^ x, Microsoft::AspNetCore::Http::Endpoint ^ y);
public int Compare (Microsoft.AspNetCore.Http.Endpoint x, Microsoft.AspNetCore.Http.Endpoint y);
public int Compare (Microsoft.AspNetCore.Http.Endpoint? x, Microsoft.AspNetCore.Http.Endpoint? y);
abstract member Compare : Microsoft.AspNetCore.Http.Endpoint * Microsoft.AspNetCore.Http.Endpoint -> int
override this.Compare : Microsoft.AspNetCore.Http.Endpoint * Microsoft.AspNetCore.Http.Endpoint -> int
Public Function Compare (x As Endpoint, y As Endpoint) As Integer

Parameters

x
Endpoint

The first object to compare.

y
Endpoint

The second object to compare.

Returns

An implementation of this method must return a value less than zero if x is less than y, zero if x is equal to y, or a value greater than zero if x is greater than y.

Implements

Applies to