本选件当前类数据源版本与指定的数据源版本进行比较。
命名空间: 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
参数
- other
类型:System.String
比较的版本号。
返回值
类型:System.Int32
返回三个整数值之一:
小于零: SourceVersion 比 other小于。
等于零: SourceVersion 与 other相等。
大于零: SourceVersion 比 other大。
实现
示例
SourceVersion 属性设置此选件当前类数据源版本。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。