MonikerKey.Inequality(MonikerKey, MonikerKey) 运算符

定义

基于两个 MonikerKeys 的 ID 进行比较,以确定它们是否不相等。 重写 operator! = 以满足 CA1036: OverrideMethodsOnComparableTypes

public:
 static bool operator !=(Microsoft::VisualStudio::Modeling::MonikerKey ^ monikerKey1, Microsoft::VisualStudio::Modeling::MonikerKey ^ monikerKey2);
public static bool operator != (Microsoft.VisualStudio.Modeling.MonikerKey monikerKey1, Microsoft.VisualStudio.Modeling.MonikerKey monikerKey2);
static member op_Inequality : Microsoft.VisualStudio.Modeling.MonikerKey * Microsoft.VisualStudio.Modeling.MonikerKey -> bool
Public Shared Operator != (monikerKey1 As MonikerKey, monikerKey2 As MonikerKey) As Boolean

参数

monikerKey1
MonikerKey

要与 MonikerKey 进行比较

monikerKey2
MonikerKey

要与 MonikerKey 进行比较的

返回

Boolean

指示两个 MonikerKeys 是否不相等的布尔值。

适用于