שתף באמצעות


ItemsRequested Property

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

Gets or sets the maximum number of items desired for return from the GetContent method.

Namespace:  Microsoft.CommerceServer.Runtime.Targeting
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Property ItemsRequested As Integer
'Usage
Dim instance As ContentSelector
Dim value As Integer

value = instance.ItemsRequested

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

Property Value

Type: System..::.Int32
The maximum number of items desired for return from the GetContent method. Default value is one (1).

Remarks

Stores the maximum number of items desired for return from the GetContent method.When setting this property, the value must be greater than or equal to zero. An ArgumentException is raised if the value is outside of these bounds.

The actual number of content items returned from GetContent may be less than this value.

Permissions

See Also

Reference

ContentSelector Class

ContentSelector Members

Microsoft.CommerceServer.Runtime.Targeting Namespace