DataSourceVersionComparer.CompareTo 方法

本选件当前类数据源版本与指定的数据源版本进行比较。

命名空间:  Microsoft.VisualStudio.Data.Framework
程序集:  Microsoft.VisualStudio.Data.Framework(在 Microsoft.VisualStudio.Data.Framework.dll 中)

语法

声明
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

参数

返回值

类型:System.Int32
返回三个整数值之一:

  1. 小于零: SourceVersion 比 other小于。

  2. 等于零: SourceVersion 与 other相等。

  3. 大于零: SourceVersion 比 other大。

实现

IComparable<T>.CompareTo(T)

示例

SourceVersion 属性设置此选件当前类数据源版本。

.NET Framework 安全性

请参见

参考

DataSourceVersionComparer 类

Microsoft.VisualStudio.Data.Framework 命名空间

SourceVersion