MonikerKey.GreaterThan(MonikerKey, MonikerKey) 运算符

定义

基于其 ID 比较两个 MonikerKeys,以确定 monikerKey1's ID 是否大于 monikerKey2。 >用于满足 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 进行比较的

返回

Boolean

指示两个 monikerKey1 是否大于 monikerKey2 的布尔值。

适用于