Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft