C-DEngine 5.105

TheStorageMirror<(Of <(<'T>)>)>..::..AddItems Method (Dictionary<(Of <(<'String, T>)>)>, Action<(Of <(<'StoreResponse>)>)>)

Adds new items to the StorageMirror's underlying MirrorCache and/or IStorageService and hands the inserted items back to the callback.

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

Syntax


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

Parameters

pDetails
Type: Dictionary<(Of <(<'String, T>)>)>
The Dictionary of items to be added. If a key is null or Guid.Empty, a new ID will be assigned to the item.
pCallBack
Type: Action<(Of <(<'TheStorageMirror<(Of <(<'T>)>)>..::..StoreResponse>)>)>
The callback method that will be invoked upon error or completed insertion of items.