ComponentResourceKey.Equals(Object) 方法

定義

判斷提供的物件和目前的 ComponentResourceKey 是否相等。

C#
public override bool Equals (object o);

參數

o
Object

要與目前 ComponentResourceKey 比較的物件。

傳回

Boolean

如果物件相等則為 true,否則為 false

備註

如果兩個索引鍵針對其所有立即可設定的屬性具有相同值, ResourceId (、 TypeInTargetAssembly) 則兩個索引鍵相等。

適用於

產品 版本
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
Windows Desktop 3.0, 3.1, 5, 6, 7