Partager via


NumberOfCodes Property

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

Gets or sets the number of promotional codes in the current instance.

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

Syntax

'Declaration
Public Property NumberOfCodes As Integer
'Usage
Dim instance As BatchInfo
Dim value As Integer

value = instance.NumberOfCodes

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

Property Value

Type: System..::.Int32
The number of promotional codes in the current instance.

Remarks

The total NumberOfCodes generated for the promo code definition linked to the discount. This property will be empty when exporting promotional codes. Default is 0.

Permissions

See Also

Reference

BatchInfo Class

BatchInfo Members

Microsoft.CommerceServer.Marketing Namespace