MonikerKey.Equality(MonikerKey, MonikerKey) 运算符
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
基于两个 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 ( = ) : 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 进行比较的
返回
指示两个 MonikerKeys 是否相等的布尔值。