ManagementBaseObject.Equals(Object) 方法

定義

比較兩個管理物件。Compares two management objects.

public:
 override bool Equals(System::Object ^ obj);
public override bool Equals (object obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean

參數

obj
Object

與這個執行個體相互比較的物件。An object to compare with this instance.

傳回

Boolean

如果這是 ManagementBaseObject 的執行個體,且表示和這個執行個體相同的物件,則為 true,否則為 falsetrue if this is an instance of ManagementBaseObject and represents the same object as this instance; otherwise, false.

備註

.NET Framework 安全性.NET Framework Security

完全信任立即呼叫者。Full trust for the immediate caller. 這個成員無法供部分信任的程式碼使用。This member cannot be used by partially trusted code. 如需詳細資訊,請參閱從部分信任的程式碼使用程式庫For more information, see Using Libraries from Partially Trusted Code.

適用於