ControlType.Inequality 运算符

表示用于比较两个控件类型对象的不等运算符 (!=)。

命名空间:  Microsoft.VisualStudio.TestTools.UITesting
程序集:  Microsoft.VisualStudio.TestTools.UITest.Extension(在 Microsoft.VisualStudio.TestTools.UITest.Extension.dll 中)

语法

声明
Public Shared Operator <> ( _
    left As ControlType, _
    right As ControlType _
) As Boolean
public static bool operator !=(
    ControlType left,
    ControlType right
)
public:
static bool operator !=(
    ControlType^ left, 
    ControlType^ right
)
static let inline (<>)
        left:ControlType * 
        right:ControlType  : bool
JScript 不支持重载运算符。

参数

返回值

类型:System.Boolean
如果提供的名称与 Name 属性值不相等,则为 true;否则为 false。

.NET Framework 安全性

请参见

参考

ControlType 类

Microsoft.VisualStudio.TestTools.UITesting 命名空间