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
- firstError
Type: Microsoft.CommerceServer.Marketing..::.PromoCodeGenerationError
The first PromoCodeGenerationError object to compare.
- secondError
Type: Microsoft.CommerceServer.Marketing..::.PromoCodeGenerationError
The second PromoCodeGenerationError object to compare.
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
- 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.
See Also
Reference
PromoCodeGenerationError Structure