MemoryMappedFile.CreateViewAccessor Method ()

.NET Framework (current version)
 

Creates a MemoryMappedViewAccessor that maps to a view of the memory-mapped file.

Namespace:   System.IO.MemoryMappedFiles
Assembly:  System.Core (in System.Core.dll)

public MemoryMappedViewAccessor CreateViewAccessor()

Return Value

Type: System.IO.MemoryMappedFiles.MemoryMappedViewAccessor

A randomly accessible block of memory.

Exception Condition
UnauthorizedAccessException

Access to the memory-mapped file is unauthorized.

You can use the view returned by this method for random access to a memory-mapped file.

.NET Framework
Available since 4.0
Return to top
Show: