比较相同类型的两个导入的对象。
命名空间: Microsoft.VisualStudio.Modeling.ExtensionEnablement
程序集: Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)
语法
声明
Protected Overridable Function Compare ( _
importedObject1 As Tuple(Of T, TMetadataView), _
importedObject2 As Tuple(Of T, TMetadataView) _
) As Integer
protected virtual int Compare(
Tuple<T, TMetadataView> importedObject1,
Tuple<T, TMetadataView> importedObject2
)
参数
- importedObject1
类型:System.Tuple<T, TMetadataView>
- importedObject2
类型:System.Tuple<T, TMetadataView>
返回值
类型:System.Int32
小于 0: 导入对象1在导入对象2之前 0:导入对象1和导入对象2质检的顺序不保证 大于 0: 导入对象1在导入对象2之后
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。