ProjectPropertyComparator.Compare method (String, String)
Compares two string values to identify their relative positions in the sort order.
Namespace: Microsoft.Office.Project.Server.Library
Assembly: Microsoft.Office.Project.Server.Library (in Microsoft.Office.Project.Server.Library.dll)
Syntax
'Declaration
Public Shared Function Compare ( _
prop1 As String, _
prop2 As String _
) As Integer
'Usage
Dim prop1 As String
Dim prop2 As String
Dim returnValue As Integer
returnValue = ProjectPropertyComparator.Compare(prop1, _
prop2)
public static int Compare(
string prop1,
string prop2
)
Parameters
prop1
Type: System.StringThe first string value to be compared.
prop2
Type: System.StringThe second string value to be compared.
Return value
Type: System.Int32
Returns "-1" if the first parameter is lower in ascending sort order than the second, returns "1" if the first parameter is higher in ascending sort order than the second, or returns "0" if they are the same string value.
See also
Reference
ProjectPropertyComparator class