OperationInfo.Equals(Object) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- obj
- Object
The object to compare with the current OperationInfo.
true
to indicate that the current OperationInfo and obj
are equal; otherwise, false
.
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)
This operation compares the values of the ContractName, IsOneWay, Parameters, and ProtectionLevel values.
Product | Versions |
---|---|
.NET Framework | 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: