NumberOfEventsOrdered Property

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

Gets or sets the value indicating how many events are planned for this campaign.

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

Syntax

'Declaration
Public Property NumberOfEventsOrdered As Integer
'Usage
Dim instance As Campaign
Dim value As Integer

value = instance.NumberOfEventsOrdered

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

Property Value

Type: System..::.Int32
The number of events planned for this campaign. The default is 0.

Exceptions

Exception Condition
MinimumValueValidationException

An attempt was made to set the NumberOfEventsOrdered to a negative value.

Remarks

This property is for informational purposes only. Content Selection logic doesn't use it in any way. The purpose of it is to let the campaign author set this number as a planned number of events for the campaign. Later, when ads are added to the campaign, the actual number of events scheduled will be increasing with each added ad, and the campaign manager may use NumberOfEventsOrdered value as a benchmark when balancing relative numbers of events for each individual ad in the campaign. But neither the API, nor the UI enforce the requirement that the Projected Number of events and actual number of events should match. Instead the UI will give a warning when they don't match.

Permissions

See Also

Reference

Campaign Class

Campaign Members

Microsoft.CommerceServer.Marketing Namespace