Export (0) Print
Expand All

MemoryMappedFile Methods

The MemoryMappedFile type exposes the following members.

  NameDescription
Public method Static member CreateFromFile(String) Creates a memory-mapped file from a file on disk.
Public method Static member CreateFromFile(String, FileMode) Creates a memory-mapped file that has the specified access mode from a file on disk.
Public method Static member CreateFromFile(String, FileMode, String) Creates a memory-mapped file that has the specified access mode and name from a file on disk.
Public method Static member CreateFromFile(String, FileMode, String, Int64) Creates a memory-mapped file that has the specified access mode, name, and capacity from a file on disk.
Public method Static member CreateFromFile(String, FileMode, String, Int64, MemoryMappedFileAccess) Creates a memory-mapped file that has the specified access mode, name, capacity, and access type from a file on disk.
Public method Static member CreateFromFile(FileStream, String, Int64, MemoryMappedFileAccess, MemoryMappedFileSecurity, HandleInheritability, Boolean) Creates a memory-mapped file that has the specified name, capacity, access type, security permissions, inheritability, and disposal requirement from a file on disk.
Public method Static member CreateNew(String, Int64) Creates a memory-mapped file that has the specified capacity in system memory.
Public method Static member CreateNew(String, Int64, MemoryMappedFileAccess) Creates a memory-mapped file that has the specified capacity and access type in system memory.
Public method Static member CreateNew(String, Int64, MemoryMappedFileAccess, MemoryMappedFileOptions, MemoryMappedFileSecurity, HandleInheritability) Creates a memory-mapped file that has the specified capacity, access type, memory allocation, security permissions, and inheritability in system memory.
Public method Static member CreateOrOpen(String, Int64) Creates or opens a memory-mapped file that has the specified capacity in system memory.
Public method Static member CreateOrOpen(String, Int64, MemoryMappedFileAccess) Creates or opens a memory-mapped file that has the specified capacity and access type in system memory.
Public method Static member CreateOrOpen(String, Int64, MemoryMappedFileAccess, MemoryMappedFileOptions, MemoryMappedFileSecurity, HandleInheritability) Creates or opens a memory-mapped file that has the specified capacity, access type, memory allocation, security permissions, and inheritability in system memory.
Public method CreateViewAccessor() Creates a MemoryMappedViewAccessor that maps to a view of the memory-mapped file.
Public method CreateViewAccessor(Int64, Int64) Creates a MemoryMappedViewAccessor that maps to a view of the memory-mapped file, and that has the specified offset and size.
Public method CreateViewAccessor(Int64, Int64, MemoryMappedFileAccess) Creates a MemoryMappedViewAccessor that maps to a view of the memory-mapped file, and that has the specified offset, size, and access restrictions.
Public method CreateViewStream() Creates a stream that maps to a view of the memory-mapped file.
Public method CreateViewStream(Int64, Int64) Creates a stream that maps to a view of the memory-mapped file, and that has the specified offset and size.
Public method CreateViewStream(Int64, Int64, MemoryMappedFileAccess) Creates a stream that maps to a view of the memory-mapped file, and that has the specified offset, size, and access type.
Public method Dispose() Releases all resources used by the MemoryMappedFile.
Protected method Dispose(Boolean) Releases the unmanaged resources used by the MemoryMappedFile and optionally releases the managed resources.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetAccessControl Gets the access control to the memory-mapped file resource.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Static member OpenExisting(String) Opens an existing memory-mapped file that has the specified name in system memory.
Public method Static member OpenExisting(String, MemoryMappedFileRights) Opens an existing memory-mapped file that has the specified name and access rights in system memory.
Public method Static member OpenExisting(String, MemoryMappedFileRights, HandleInheritability) Opens an existing memory-mapped file that has the specified name, access rights, and inheritability in system memory.
Public method SetAccessControl Sets the access control to the memory-mapped file resource.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

Community Additions

ADD
Show:
© 2014 Microsoft