Loads data from the data store. A time frame and/or number of items to load can be specified.

Namespace: RightEdge.Common
Assembly: Common (in Common.dll) Version: 2010.1.0.0 (2010.1.0.0)

Syntax

C#
List<T> Load(
	DateTime start,
	DateTime end,
	long maxItems,
	bool loadFromEnd
)
Visual Basic
Function Load ( 
	start As DateTime,
	end As DateTime,
	maxItems As Long,
	loadFromEnd As Boolean
) As List(Of T)
Visual C++
List<T>^ Load(
	DateTime start, 
	DateTime end, 
	long long maxItems, 
	bool loadFromEnd
)
F#
abstract Load : 
        start : DateTime * 
        end : DateTime * 
        maxItems : int64 * 
        loadFromEnd : bool -> List<'T> 

Parameters

start
Type: System..::..DateTime
The date of the first data item to load.
end
Type: System..::..DateTime
The date of the last data item to load.
maxItems
Type: System..::..Int64
The maximum number of items to load from the store.
loadFromEnd
Type: System..::..Boolean
Controls whether the items returned should come from the beginning or the end of the specified date range (if there are more items in the date range than specified by the maxItems parameter).

Return Value

Type: List<(Of <(<'T>)>)>
A collection of data items.

Remarks

If you don't want to specify a specific start date, use MinValue for the start parameter. Likewise, use MaxValue for the end parameter if you don't want to specify an end date. For example, to load the last 1000 items in the data store specify the 1000 for the maxItems parameter and true for the loadFromEnd parameter.

See Also