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
other
Type: System.StringThe version number to compare.
Return Value
Type: System.Int32
Returns one of three integer values:
Less than zero: SourceVersion is less than other.
Equal to zero: SourceVersion is equal to other.
Greater than zero: SourceVersion is greater than other.
Implements
Examples
The SourceVersion property sets the current data-source version for this class.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
DataSourceVersionComparer Class