C-DEngine 5.105

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

Updates a single item in the StorageMirror's underlying MirrorCache and/or IStorageService and hands the updated item back to the callback.

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

Syntax


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

Parameters

pDetails
Type: T
The item to be updated. If the item's cdeMID is Guid.Empty, the item will be added with a new ID.
CallBack
Type: Action<(Of <(<'TheStorageMirror<(Of <(<'T>)>)>..::..StoreResponse>)>)>
The callback method that will be invoked upon error or completed update of the item.