NumberOfCodes Property
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Gets the number of promotion codes created for the current instance.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)
Syntax
'Declaration
Public ReadOnly Property NumberOfCodes As Integer
'Usage
Dim instance As PromoCodeDefinition
Dim value As Integer
value = instance.NumberOfCodes
public int NumberOfCodes { get; }
public:
property int NumberOfCodes {
int get ();
}
public function get NumberOfCodes () : int
Property Value
Type: System..::.Int32
The number of promotion codes created for the current instance. Must be greater or equal to 0.
Remarks
For Public promotion codes, this value is always 1. For other types, the value is the number of codes generated for the definition. The default value 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.