ImportFileFormatException Constructor (PromoCodeGenerationErrorCode)
Initializes a new instance of the PromoCodeGenerationErrorCode that caused the error.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)
Syntax
'Declaration
Public Sub New ( _
errorCode As PromoCodeGenerationErrorCode _
)
'Usage
Dim errorCode As PromoCodeGenerationErrorCode
Dim instance As New ImportFileFormatException(errorCode)
public ImportFileFormatException(
PromoCodeGenerationErrorCode errorCode
)
public:
ImportFileFormatException(
PromoCodeGenerationErrorCode errorCode
)
public function ImportFileFormatException(
errorCode : PromoCodeGenerationErrorCode
)
Parameters
- errorCode
Type: Microsoft.CommerceServer.Marketing..::.PromoCodeGenerationErrorCode
A PromoCodeGenerationErrorCode object that indicates the error code
Remarks
The ImportFileFormatException is the exception that is thrown when the format of an imported coupon file is invalid.
The PromoCodeGenerationErrorCode enumeration value indicates the cause of the error.
A non nullNothingnullptra null reference (Nothing in Visual Basic)errorCode indicates the current exception is raised in a catch block that handles the inner exception.
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
ImportFileFormatException Class
ImportFileFormatException Members