MonikerKey.Equals 方法 (MonikerKey)
傳回兩個 MonikerKey 物件是否相同。
命名空間: Microsoft.VisualStudio.Modeling
組件: Microsoft.VisualStudio.Modeling.Sdk.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)
語法
'宣告
Public Function Equals ( _
monikerKey As MonikerKey _
) As Boolean
public bool Equals(
MonikerKey monikerKey
)
參數
- monikerKey
類型:Microsoft.VisualStudio.Modeling.MonikerKey
要與這個索引鍵比較的 MonikerKey 。
傳回值
類型:System.Boolean
如果 MonikerKey 相同,則為 true,否則為 false。
備註
這個方法會傳回 true ,則 CompareTo 會傳回 0,否則會傳回 false。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。