This documentation is archived and is not being maintained.

StoredQuery::CompareTo Method

Compares this stored query to the specified instance.

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

public:
int CompareTo(
	StoredQuery^ storedQuery
)

Parameters

storedQuery
Type: Microsoft.TeamFoundation.WorkItemTracking.Client::StoredQuery

The stored query instance with which to compare the specified instance.

Return Value

Type: System::Int32
Returns 0 if this stored query and the specified instance are equivalent.
Returns -1 if this stored query is public and the specified instance is private.
Returns 1 if this stored query is private and the specified instance is public.

Show: