CodeLength Property
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Gets or sets the length of the random codes that will be generated in a batch.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)
Syntax
'Declaration
Public Property CodeLength As Integer
'Usage
Dim instance As RandomGenerationParameters
Dim value As Integer
value = instance.CodeLength
instance.CodeLength = value
public int CodeLength { get; set; }
public:
property int CodeLength {
int get ();
void set (int value);
}
public function get CodeLength () : int
public function set CodeLength (value : int)
Property Value
Type: System..::.Int32
The length of the random codes that will be generated in a batch, not including the prefix and suffix.
Exceptions
Exception | Condition |
---|---|
MinimumValueValidationException | The value must be greater than zero. |
MaximumValueValidationException | The value must be less than or equal to 50. |
Remarks
Contains the length of the RandomGenerationParameters, not counting the prefix and suffix.
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
RandomGenerationParameters Class