'Declaration Public Class MemoryFile Inherits AbstractFile
'Usage Dim instance As MemoryFile
public class MemoryFile : AbstractFile
'Declaration Public Class MemoryFile Inherits AbstractFile
'Usage Dim instance As MemoryFile
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
Name | Description | |
---|---|---|
![]() | MemoryFile Constructor | Overloaded. |
Name | Description | |
---|---|---|
![]() | Attributes | Gets or sets the attributes of the item. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | CreationDateTime | Gets or sets the creation date and time of the item. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | Exists | Gets a boolean value indicating if the item physically exists. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | FullName | Gets the full name of the item. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | HasAttributes | Gets a boolean value indicating if the item supports attributes. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | HasCreationDateTime | Gets a boolean value indicating if the item supports having a creation date and time. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | HasLastAccessDateTime | Gets a boolean value indicating if the item supports having a last access date and time. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | HasLastWriteDateTime | Gets a boolean value indicating if the item supports having a last write date and time. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | HostedFullName | Gets a human-readable full pathname representing the fully qualified path of all host files containing the item and the path of the item itself. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | HostFile | Gets an AbstractFile containing an archived version of this FileSystemItem. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | LastAccessDateTime | Gets or sets the last access date and time of the item. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | LastWriteDateTime | Gets or sets the modification date and time of the item. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | Name | Gets or sets the filename, without path, of the item. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | ParentFolder | Gets a reference to the parent folder of this item. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | RootFolder | Gets a reference to the root folder of this item. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | Size | Gets the size of the file in bytes. (Inherited from Xceed.FileSystem.AbstractFile) |
Name | Description | |
---|---|---|
![]() | BatchUpdateable | Overridden. Gets the IBatchUpdateable implementation for this item. |
![]() | DoAttributes | Overridden. Gets or sets the attributes of the item. |
![]() | DoCreationDateTime | Overridden. Gets or sets the creation date and time of the item. |
![]() | DoExists | Overridden. Gets a boolean value indicating if the item physically exists. |
![]() | DoFullName | Overridden. Gets the full name of the item. |
![]() | DoHasAttributes | Gets a boolean value indicating if the item supports attributes. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | DoHasCreationDateTime | Gets a boolean value indicating if the item supports having a creation date and time. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | DoHasLastAccessDateTime | Gets a boolean value indicating if the item supports having a last access date and time. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | DoHasLastWriteDateTime | Gets a boolean value indicating if the item supports having a last write date and time. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | DoLastAccessDateTime | Overridden. Gets or sets the last access date and time of the item. |
![]() | DoLastWriteDateTime | Overridden. Gets or sets the modification date and time of the item. |
![]() | DoName | Overridden. Gets or sets the filename, without path, of the item. |
![]() | DoParentFolder | Overridden. Gets a reference to the parent folder of this item. |
![]() | DoRootFolder | Overridden. Gets a reference to the root folder of this item. |
![]() | DoSize | Overridden. Gets the size of the file in bytes. |
![]() | InvalidChars | Gets the characters that are invalid in file and folder names. (Inherited from Xceed.FileSystem.FileSystemItem) |
Name | Description | |
---|---|---|
![]() | ApplyPropertiesTo | Overloaded. Copies the item's properties to another item. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | CopyTo | Overloaded. Copies the file's data to another file. (Inherited from Xceed.FileSystem.AbstractFile) |
![]() | Create | Overloaded. Creates the physical item represented by this FileSystemItem object. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | CreateObjRef | (Inherited from System.MarshalByRefObject) |
![]() | CreateWrite | Overloaded. Creates a file and opens it for writing. (Inherited from Xceed.FileSystem.AbstractFile) |
![]() | Delete | Overloaded. Permanently deletes the physical item. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | DoCopyToComplete | (Inherited from Xceed.FileSystem.AbstractFile) |
![]() | DoCopyToLoop | (Inherited from Xceed.FileSystem.AbstractFile) |
![]() | DoCopyToSetup | (Inherited from Xceed.FileSystem.AbstractFile) |
![]() | GetLifetimeService | (Inherited from System.MarshalByRefObject) |
![]() | GetMetadata | (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | InitializeLifetimeService | (Inherited from System.MarshalByRefObject) |
![]() | IsSameAs | Overridden. Gets a boolean value indicating if the source and target items represent the same physical entity. |
![]() | MoveTo | Overloaded. Moves the contents of the AbstractFile object to the target AbstractFile object. (Inherited from Xceed.FileSystem.AbstractFile) |
![]() | OpenRead | Overloaded. Opens the file for reading. (Inherited from Xceed.FileSystem.AbstractFile) |
![]() | OpenWrite | Overloaded. Opens the file for writing. (Inherited from Xceed.FileSystem.AbstractFile) |
![]() | Refresh | Overloaded. Re-reads the information from the physical item. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | SetName | (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | ToArray | Writes the file contents to a System.Byte array, regardless of the state and position of opened streams. |
![]() | ToString | Returns the full name of the item. (Inherited from Xceed.FileSystem.FileSystemItem) |
Name | Description | |
---|---|---|
![]() | ApplyPropertiesToCore | (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | BuildList | Builds a list of FileSystemItem objects to process. (Inherited from Xceed.FileSystem.AbstractFile) |
![]() | BuildListForCreate | Handles the special cases in regards to building the list of items to process when creating a FileSystemItem object. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | CreateFileMultiThreadItem | (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | CreateFolderMultiThreadItem | (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | CreateSession | Overloaded. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | DoApplyPropertiesFrom | This method is reserved for internal use and is not intended to be used directly from your code. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | DoApplyPropertiesTo | Copies the item's properties to another item. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | DoCopyTo | Copies the file into the destination. (Inherited from Xceed.FileSystem.AbstractFile) |
![]() | DoCreate | Overridden. Creates the physical file. |
![]() | DoCreateWrite | Creates the file and opens it for writing. (Inherited from Xceed.FileSystem.AbstractFile) |
![]() | DoDelete | Overridden. Permanently deletes the physical item. |
![]() | DoGetMetadata | (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | DoMoveTo | (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | DoOpenRead | Overridden. Opens the file for reading. |
![]() | DoOpenWrite | Overridden. Opens the file for writing. |
![]() | DoRefresh | Overridden. Re-reads the information from the physical item. In the case of a MemoryFile object, we are always up-to-date. |
![]() | DoSetMetadata | (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | EnsureDateIsValid | Ensures that the System.DateTime value is valid. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | GetAutomaticReadFileShare | Retrieves a value indicating the default FileShare value to be used when opening read streams for copy/move operations. (Inherited from Xceed.FileSystem.AbstractFile) |
![]() | GetAutomaticWriteFileShare | Retrieves a value indicating the default FileShare value to be used when opening write streams for copy/move operations. (Inherited from Xceed.FileSystem.AbstractFile) |
![]() | GetStreamBufferSize | Returns the recommended buffer size for a stream copy operation. (Inherited from Xceed.FileSystem.AbstractFile) |
![]() | IsPathRooted | Overridden. Returns a boolean value indicating if the path passed is rooted. |
![]() | IsPublicException | (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | ListCopyTo | Copies each item in the FileSystemEventsSession object's list to each item's destination. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | ListCopyToCore | Copies the item pair's current FileSystemItem to its target FileSystemItem. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | ListCreate | Creates each item in the FileSystemEventsSession object's list. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | ListCreateCore | Creates the item pair's current FileSystemItem. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | ListDelete | Deletes each item in the FileSystemEventsSession object's list. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | ListDeleteCore | Deletes the item pair's current FileSystemItem. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | ListMoveTo | Moves each item in the FileSystemEventsSession object's list to each item's destination. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | ListMoveToCore | Moves the item pair's current FileSystemItem to its target FileSystemItem. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | MemberwiseClone | Overloaded. (Inherited from System.MarshalByRefObject) |
![]() | NeedsApplyPropertiesTo | (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | OnCreated | Called when a client explicitly calls Create. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | OnSessionCreated | (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | OnSessionCreatedDestination | (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | ValidateDoCopyToContext | (Inherited from Xceed.FileSystem.AbstractFile) |
![]() | ValidateDoCopyToContextAsDestination | (Inherited from Xceed.FileSystem.AbstractFile) |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2