Partager via


Equals Method

Returns a value indicating whether an object is a shipping method and is equal to the shipping method 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 ShippingMethod
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 shipping method to compare with the shipping method of the current instance.

Return Value

Type: System..::.Boolean
true if the objects are same; otherwise, false.

Remarks

If the obj is nullNothingnullptra null reference (Nothing in Visual Basic) or the obj is not a ShippingMethod, false is returned. If the obj's ShippingGroupId is the same as this ShippingMethod's ShippingGroupId, true is returned.

Permissions

See Also

Reference

ShippingMethod Class

ShippingMethod Members

Microsoft.CommerceServer.Orders Namespace