Muokkaa

Jaa


OperationInfo.Equals(Object) Method

Definition

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

Parameters

obj
Object

The object to compare with the current OperationInfo.

Returns

true to indicate that the current OperationInfo and obj are equal; otherwise, false.

Examples

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)

Remarks

This operation compares the values of the ContractName, IsOneWay, Parameters, and ProtectionLevel values.

Applies to