Share via


Equals Method

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Checks if the object passed is a PaymentMethod and the unique identifier is equal to the PaymentGroupId of the current instance.

Namespace:  Microsoft.CommerceServer.Orders
Assembly:  Microsoft.CommerceServer.Orders.CrossTierTypes (in Microsoft.CommerceServer.Orders.CrossTierTypes.dll)

Syntax

'Declaration
Public Overrides Function Equals ( _
    obj As Object _
) As Boolean
'Usage
Dim instance As PaymentMethod
Dim obj As Object
Dim returnValue As Boolean

returnValue = instance.Equals(obj)
public override bool Equals(
    Object obj
)
public:
virtual bool Equals(
    Object^ obj
) override
public override function Equals(
    obj : Object
) : boolean

Parameters

  • obj
    Type: System..::.Object
    The object passed to check to see if it is a PaymentMethod.

Return Value

Type: System..::.Boolean
true if the unique identifier for the obj and the PaymentMethod are the same; otherwise false.

Remarks

Returns true if the object passed is a PaymentMethod and the unique identifier is equal to the PaymentGroupId of the current instance.

If obj is nullNothingnullptra null reference (Nothing in Visual Basic), false is returned.

Permissions

See Also

Reference

PaymentMethod Class

PaymentMethod Members

Microsoft.CommerceServer.Orders Namespace