Click or drag to resize
RandomCodeGenerator Constructor
Initializes new instance of RandomCodeGenerator generating random codes starting with prefix. Format of codes is specified by codePattern parameter.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax
C#
public RandomCodeGenerator(
	ICodeUniquenessChecker checker,
	string codePattern,
	string codePrefix = ""
)

Parameters

checker
Type: CMS.EcommerceICodeUniquenessChecker
Ensures generated code uniqueness.
codePattern
Type: SystemString
Pattern for codes. Hash # stands for random digit, dollar $ stands for random character and asterisk for any alphanumeric symbol. Other characters are copied to output.
codePrefix (Optional)
Type: SystemString
Every generated code will start with this prefix.
See Also