Equality Operator

Returns a value indicating whether the first specified PromoCodeGenerationError is equal to the second specified PromoCodeGenerationError.

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

Syntax

'Declaration
Public Shared Operator = ( _
    firstError As PromoCodeGenerationError, _
    secondError As PromoCodeGenerationError _
) As Boolean
'Usage
Dim firstError As PromoCodeGenerationError
Dim secondError As PromoCodeGenerationError
Dim returnValue As Boolean

returnValue = (firstError = secondError)
public static bool operator ==(
    PromoCodeGenerationError firstError,
    PromoCodeGenerationError secondError
)
public:
static bool operator ==(
    PromoCodeGenerationError firstError, 
    PromoCodeGenerationError secondError
)
JScript does not support overloaded operators.

Parameters

Return Value

Type: System..::.Boolean
true to indicate the PromoCodeGenerationError objects are the equivalent; otherwise false.

Remarks

Determines whether the specified PromoCodeGenerationError objects are considered equal.

Permissions

See Also

Reference

PromoCodeGenerationError Structure

PromoCodeGenerationError Members

Microsoft.CommerceServer.Marketing Namespace