Partilhar via


RandomGenerationParameters Constructor (Int32)

Constructs a new instance of the RandomGenerationParameters class with the given code length.

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

Syntax

'Declaration
Public Sub New ( _
    codeLength As Integer _
)
'Usage
Dim codeLength As Integer

Dim instance As New RandomGenerationParameters(codeLength)
public RandomGenerationParameters(
    int codeLength
)
public:
RandomGenerationParameters(
    int codeLength
)
public function RandomGenerationParameters(
    codeLength : int
)

Parameters

  • codeLength
    Type: System..::.Int32
    Length of the random codes to generate. The codeLength must be between 0 and 50.

Remarks

The codeLength is the length of the random codes that will be generated in a batch.

Randomly generates promotion codes. The random codes are created using characters from a user configurable dictionary file. The default dictionary file contains the following values: 1234567890BCDFGHJKLMNPQRSTVWXYZ#. The user has to specify the length of the random codes. In addition, user specified prefix and suffix are attached to the beginning and end of the random code.

Permissions

See Also

Reference

RandomGenerationParameters Class

RandomGenerationParameters Members

RandomGenerationParameters Overload

Microsoft.CommerceServer.Marketing Namespace