Partager via


NumberOfRecordsToReturn Property

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

Gets or sets a value that determines how many records to return.

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

Syntax

'Declaration
Public Property NumberOfRecordsToReturn As Integer
'Usage
Dim instance As SearchOptions
Dim value As Integer

value = instance.NumberOfRecordsToReturn

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

Property Value

Type: System..::.Int32
The maximum number of records to return from the search.

Remarks

Returns up to the configured limit for the system. A value of -1 indicates that all results are returned. The default value is -1.

Permissions

See Also

Reference

SearchOptions Class

SearchOptions Members

Microsoft.CommerceServer Namespace