OperationInfo.Equals(Object) Method
Definition
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
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
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.