OperationInfo.Equals(Object) Método

Definición

Determina si dos instancias de objeto son iguales.Determines whether two object instances are equal.

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

Parámetros

obj
Object

Objeto que se va a comparar con el objeto OperationInfo actual.The object to compare with the current OperationInfo.

Devoluciones

Boolean

true para indicar que el OperationInfo actual y obj son iguales; de lo contrario, false.true to indicate that the current OperationInfo and obj are equal; otherwise, false.

Ejemplos

En el siguiente ejemplo se muestra cómo se utiliza el método Equals.The following example demonstrates how to use the Equals method.

OperationInfo info1 = new OperationInfo();
info1.Name = "ProcessData";
OperationInfo info2 = new OperationInfo();
info2.Name = "ProcessData";
return info1.Equals(info2);
Dim info1 As New OperationInfo()
info1.Name = "ProcessData"
Dim info2 As New OperationInfo()
info2.Name = "ProcessData"
Return info1.Equals(info2)

Comentarios

Esta operación compara los valores de ContractName, IsOneWay, Parameters y ProtectionLevel.This operation compares the values of the ContractName, IsOneWay, Parameters, and ProtectionLevel values.

Se aplica a