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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.