C-DEngine 5.105

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

Adds a single item to the StorageMirror's underlying MirrorCache and/or IStorageService and hands the inserted item back to the callback.

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

Syntax


public void AddAnItem(
	T pDetails,
	Action<TheStorageMirror<(Of <(<'T>)>)>..::..StoreResponse> pCallBack
)
Public Sub AddAnItem ( _
	pDetails As T, _
	pCallBack As Action(Of TheStorageMirror<(Of <(<'T>)>)>..::..StoreResponse) _
)
public:
void AddAnItem(
	T pDetails, 
	Action<TheStorageMirror<(Of <(<'T>)>)>..::..StoreResponse^>^ pCallBack
)

Parameters

pDetails
Type: T
The item to be added. The cdeMID of the item will be used as its ID in the StorageMirror.
pCallBack
Type: Action<(Of <(<'TheStorageMirror<(Of <(<'T>)>)>..::..StoreResponse>)>)>
The callback method that will be invoked upon error or completed insertion of the item.