Specifies whether the file data is written synchronously to the cache and via OnWriteFile callback/event/delegate
property CachePolicyWriteThrough : boolean;
void SetCachePolicyWriteThrough(BOOL Value);
Public Property CachePolicyWriteThrough As Boolean
void setCachePolicyWriteThrough(boolean value)
Use this property to tell the driver whether file data must be first put to the the cache or be written to the cache and OnFileWrite callback/event/delegate should be called at the same time. By default CachePolicyWriteThrough is false and the driver first write the data to the cache and then flushes the cache asynchronously.
The cache is allocated on per-process basis in user-mode memory. This means that if you have several CallbackFileSystem objects, they will share the same cache and changing Cache* properties for one object will result in process-wide changes.
The property may be changed only after the successful call to MountMedia() method and only from outside of callback / event handlers.