ManagementBaseObject.CompareTo(ManagementBaseObject, ComparisonSettings) Método

Definição

Compara este objeto a outro com base nas opções especificadas.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

Parâmetros

otherObject
ManagementBaseObject

O objeto ao qual comparar este objeto.The object to which to compare this object.

settings
ComparisonSettings

Opções sobre como comparar os objetos.Options on how to compare the objects.

Retornos

Boolean

true se os objetos comparados forem iguais de acordo com as opções especificadas; caso contrário, false.true if the objects compared are equal according to the given options; otherwise, false.

Comentários

Segurança do .NET Framework.NET Framework Security

Confiança total para o chamador imediato.Full trust for the immediate caller. Este membro não pode ser usado pelo código parcialmente confiável.This member cannot be used by partially trusted code. Para obter mais informações, consulte usando bibliotecas de código parcialmente confiável.For more information, see Using Libraries from Partially Trusted Code.

Aplica-se a