GenerationMethod Property
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Gets or sets the PromoCodeGenerationMethod that was used to fill the current instance started with promo codes.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)
Syntax
'Declaration
Public Property GenerationMethod As PromoCodeGenerationMethod
'Usage
Dim instance As BatchInfo
Dim value As PromoCodeGenerationMethod
value = instance.GenerationMethod
instance.GenerationMethod = value
public PromoCodeGenerationMethod GenerationMethod { get; set; }
public:
property PromoCodeGenerationMethod GenerationMethod {
PromoCodeGenerationMethod get ();
void set (PromoCodeGenerationMethod value);
}
public function get GenerationMethod () : PromoCodeGenerationMethod
public function set GenerationMethod (value : PromoCodeGenerationMethod)
Property Value
Type: Microsoft.CommerceServer.Marketing..::.PromoCodeGenerationMethod
The PromoCodeGenerationMethod that filled the BatchInfo object.
Remarks
Enumerates the different methods supported for promotion code generation.
The enumeration value shall be one of the following:
GenerateRandomCodes - Randomly generate promotion codes.
ImportCodes - Import promotion codes with (optional) associated targetUsers from file.
ImportUsersAndGenerateCodes - Import targetUsers from file and generate random promotion codes for them.
This property will be 0 (an invalid enumeration value) when exporting promotion codes. Default is 0.
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.