Share via


ExposureLimit Property

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

Gets or sets the exposure limit of the current DisplayableCampaignItem object.

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

Syntax

'Declaration
Public Property ExposureLimit As Integer
'Usage
Dim instance As DisplayableCampaignItem
Dim value As Integer

value = instance.ExposureLimit

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

Property Value

Type: System..::.Int32
The exposure limit of the current instance. Default is 0.

Exceptions

Exception Condition
MaximumValueValidationException

Value is greater than 10.

MinimumValueValidationException

Value is less than 0.

Remarks

Exposure limit determines the maximum number of times this campaign item can be shown to a user within a session. 0 means no limit.

Permissions

See Also

Reference

DisplayableCampaignItem Class

DisplayableCampaignItem Members

Microsoft.CommerceServer.Marketing Namespace