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
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.