Partager via


DataSourceVersionComparer.CompareTo Method

Compares the current data-source version in this class with the specified data-source version.

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Public Function CompareTo ( _
    other As String _
) As Integer
public int CompareTo(
    string other
)
public:
virtual int CompareTo(
    String^ other
) sealed
abstract CompareTo : 
        other:string -> int  
override CompareTo : 
        other:string -> int
public final function CompareTo(
    other : String
) : int

Parameters

Return Value

Type: System.Int32
Returns one of three integer values:

  1. Less than zero: SourceVersion is less than other.

  2. Equal to zero: SourceVersion is equal to other.

  3. Greater than zero: SourceVersion is greater than other.

Implements

IComparable<T>.CompareTo(T)

Examples

The SourceVersion property sets the current data-source version for this class.

.NET Framework Security

See Also

Reference

DataSourceVersionComparer Class

Microsoft.VisualStudio.Data.Framework Namespace

SourceVersion