返回一个值,该值指示提供的测试 ID 是否与当前对象相等。
命名空间:  Microsoft.VisualStudio.TestTools.Common
程序集:  Microsoft.VisualStudio.QualityTools.Common(在 Microsoft.VisualStudio.QualityTools.Common.dll 中)
语法
声明
Public Function Equals ( _
    other As TestId _
) As Boolean
public bool Equals(
    TestId other
)
public:
virtual bool Equals(
    TestId^ other
) sealed
abstract Equals : 
        other:TestId -> bool 
override Equals : 
        other:TestId -> bool 
public final function Equals(
    other : TestId
) : boolean
参数
- other
 类型:Microsoft.VisualStudio.TestTools.Common.TestId
 一个 TestId 对象。
返回值
类型:System.Boolean
如果提供的测试 ID 与当前对象相等,则该值为 true;否则为 false。
实现
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。