Share via


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)

Syntax

'Declaration
Public Function CompareTo ( _
    storedQuery As StoredQuery _
) As Integer
public int CompareTo(
    StoredQuery storedQuery
)
public:
int CompareTo(
    StoredQuery^ storedQuery
)
member CompareTo : 
        storedQuery:StoredQuery -> int 
public function CompareTo(
    storedQuery : StoredQuery
) : int

Parameters

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.

.NET Framework Security

See Also

Reference

StoredQuery Class

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace