| Visual Basic (Declaration) | |
|---|---|
Public Class MemoryFile Inherits AbstractFile | |
| C# | |
|---|---|
public class MemoryFile : AbstractFile | |
As long as you hold at least one instance on a MemoryFile or a MemoryFolder located in a specific root name, all files and folders in that same virtual ram drive stay alive. When a root name is no longer referenced, all its content will get garbage collected later.
To make sure the memory allocated for a MemoryFile's data is released, as soon as you don't need the file anymore, call FileSystemItem.Delete on that MemoryFile.
System.Object
System.MarshalByRefObject
Xceed.FileSystem.FileSystemItem
Xceed.FileSystem.AbstractFile
Xceed.FileSystem.MemoryFile
Supported Operating Systems: Windows 2000 Service Pack 3; Windows 98; Windows 98 Second Edition; Windows ME; Windows Server 2003; Windows Vista Business; Windows Vista Business 64-bit edition; Windows Vista Enterprise; Windows Vista Enterprise 64-bit edition; Windows Vista Home Basic; Windows Vista Home Basic 64-bit edition; Windows Vista Home Premium; Windows Vista Home Premium 64-bit edition; Windows Vista Starter; Windows Vista Ultimate; Windows Vista Ultimate 64-bit edition; Windows XP Service Pack 2
Supported Frameworks: Microsoft .NET Framework version 2.0; Microsoft .NET Framework version 3.0


~220.gif)
~220.gif)
~220.gif)
~220.gif)
~220.gif)

~220.gif)