Share via


Code Property

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Gets or sets the error code of the current instance.

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

Syntax

'Declaration
Public Property Code As PromoCodeGenerationErrorCode
'Usage
Dim instance As PromoCodeGenerationError
Dim value As PromoCodeGenerationErrorCode

value = instance.Code

instance.Code = value
public PromoCodeGenerationErrorCode Code { get; set; }
public:
property PromoCodeGenerationErrorCode Code {
    PromoCodeGenerationErrorCode get ();
    void set (PromoCodeGenerationErrorCode value);
}
public function get Code () : PromoCodeGenerationErrorCode
public function set Code (value : PromoCodeGenerationErrorCode)

Property Value

Type: Microsoft.CommerceServer.Marketing..::.PromoCodeGenerationErrorCode
A PromoCodeGenerationErrorCode enumeration that describes the current error.

Remarks

Specifies possible promotion code import error codes.

Permissions

See Also

Reference

PromoCodeGenerationError Structure

PromoCodeGenerationError Members

Microsoft.CommerceServer.Marketing Namespace