Share via


ContentSelector.ItemsRequested Property (BCL)

The ItemsRequested property is a read/write integer that gets or sets the number of items desired for return from the GetContent method.

Definition

[Visual Basic .NET]

Public Property ItemsRequested As System.Int32

[C#]

public System.Int32 ItemsRequested{get; set;} 

Property Value

The number of items desired for return from the GetContent method.

Remarks

When setting this property, you must use a value greater than or equal to zero. An ArgumentException is thrown if the value is outside of these bounds. The actual number of content items returned from the GetContent method may be less than this value. The default value is one (1).

Requirements

Namespace: Microsoft.CommerceServer.Runtime.Targeting

Platforms: Windows 2000, Windows Server 2003

Assembly: Microsoft.CommerceServer.Runtime.dll

See Also

Code to Display Targeted Advertisements on an ASP.NET Web Form

Copyright © 2005 Microsoft Corporation.
All rights reserved.