C-DEngine 5.105

TheStorageMirror<(Of <(<'T>)>)>..::..GetRecords Method (Action<(Of <(<'StoreResponse>)>)>, Boolean)

Retrieves records from the StorageMirror's underlying MirrorCache or IStorageService and hands them to the callback. If IsRAMStore or IsCached, the records will be retrieved from the MirrorCache. If IsRAMStore is false, the records will be retrieved from the IStorageService.

Namespace:  nsCDEngine.Engines.StorageService
Assembly:  C-DEngine (in C-DEngine.dll)


public bool GetRecords(
	Action<TheStorageMirror<(Of <(<'T>)>)>..::..StoreResponse> pCallBack,
	bool LocalCallBackOnly
Public Function GetRecords ( _
	pCallBack As Action(Of TheStorageMirror<(Of <(<'T>)>)>..::..StoreResponse), _
	LocalCallBackOnly As Boolean _
) As Boolean
bool^ GetRecords(
	Action<TheStorageMirror<(Of <(<'T>)>)>..::..StoreResponse^>^ pCallBack, 
	bool^ LocalCallBackOnly


Type: Action<(Of <(<'TheStorageMirror<(Of <(<'T>)>)>..::..StoreResponse>)>)>
The callback method that will be invoked upon error or completed retrieval of records.
Type: Boolean
If set to true, no request is sent to a remote StorageService.

Return Value

True if the request was successfully made and false otherwise (if the StorageMirror is not ready yet and was not initialized).