This documentation is archived and is not being maintained.

IdentityDescriptorComparer::Compare Method

Compares two identity descriptors for equivalence.

Namespace:  Microsoft.TeamFoundation.Framework.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

public:
virtual int Compare(
	IdentityDescriptor^ x, 
	IdentityDescriptor^ y
) sealed

Parameters

x
Type: Microsoft.TeamFoundation.Framework.Client::IdentityDescriptor

The first identity descriptor.

y
Type: Microsoft.TeamFoundation.Framework.Client::IdentityDescriptor

The second identity descriptor.

Return Value

Type: System::Int32
Returns 0 if the two identity descriptors are equal. Returns nonzero if the identity descriptors are not equal.

Implements

IComparer<T>::Compare(T, T)

Performs a string compare on the identity descriptor properties.

Show: