|
WindowsApiFlushFileBuffers Method
|
Flushes the buffers of a specified file and causes all buffered data to be written to a file.
Namespace: GSF.InteropAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.256-beta+0e7e94d39a9b10efe7e26e3b8d5130afc0dd4d74
Syntax[DllImportAttribute("KERNEL32", SetLastError = true)]
public static void FlushFileBuffers(
SafeFileHandle handle
)
<DllImportAttribute("KERNEL32", SetLastError := true>]
Public Shared Sub FlushFileBuffers (
handle As SafeFileHandle
)
public:
[DllImportAttribute(L"KERNEL32", SetLastError = true)]
static void FlushFileBuffers(
SafeFileHandle^ handle
)
[<DllImportAttribute("KERNEL32", SetLastError = true)>]
static member FlushFileBuffers :
handle : SafeFileHandle -> unit
GSF.Interop.WindowsApi.FlushFileBuffers = function(handle);
View SourceParameters
- handle SafeFileHandle
RemarksSince the Flush(Boolean) method does not actually work, this finishes the flush to the disk file system.
Which still could cache the results, but this is about the best we can do for a flush right now.
See Also