ManagementBaseObject.CompareTo(ManagementBaseObject, ComparisonSettings) ManagementBaseObject.CompareTo(ManagementBaseObject, ComparisonSettings) ManagementBaseObject.CompareTo(ManagementBaseObject, ComparisonSettings) ManagementBaseObject.CompareTo(ManagementBaseObject, ComparisonSettings) Method

定義

指定したオプションに基づいて、このオブジェクトを別のオブジェクトと比較します。Compares this object to another, based on specified options.

public:
 bool CompareTo(System::Management::ManagementBaseObject ^ otherObject, System::Management::ComparisonSettings settings);
public bool CompareTo (System.Management.ManagementBaseObject otherObject, System.Management.ComparisonSettings settings);
member this.CompareTo : System.Management.ManagementBaseObject * System.Management.ComparisonSettings -> bool
Public Function CompareTo (otherObject As ManagementBaseObject, settings As ComparisonSettings) As Boolean

パラメーター

otherObject
ManagementBaseObject ManagementBaseObject ManagementBaseObject ManagementBaseObject

このオブジェクトと比較するオブジェクト。The object to which to compare this object.

settings
ComparisonSettings ComparisonSettings ComparisonSettings ComparisonSettings

オブジェクトの比較方法に関するオプション。Options on how to compare the objects.

戻り値

指定したオプションに基づいて、比較したオブジェクトが等しい場合は true。それ以外の場合は falsetrue if the objects compared are equal according to the given options; 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.

適用対象