Equals Method
Returns a value that indicates if the specified PromoCode record has the same PromoCode value as the current instance.
Namespace: Microsoft.CommerceServer.Runtime.Orders
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Overrides Function Equals ( _
obj As Object _
) As Boolean
'Usage
Dim instance As PromoCodeRecord
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 PromoCodeRecord instance to compare.
Return Value
Type: System..::.Boolean
true if the PromoCode matches; otherwise, false.
Remarks
Use this method to determine if the specified PromoCode record has the same PromoCode value as the current instance. The comparison is case-insensitive. If obj is nullNothingnullptra null reference (Nothing in Visual Basic), false 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.