Xceed .NET Libraries Documentation
Xceed.FileSystem Assembly / Xceed.FileSystem Namespace / DiskFile Class
Members


In This Topic
    DiskFile Class
    In This Topic
    Specialization of the AbstractFile class that implements access to a disk file.
    Syntax
    'Declaration
     
    Public Class DiskFile 
       Inherits AbstractFile
    'Usage
     
    Dim instance As DiskFile
    public class DiskFile : AbstractFile 
    Remarks
    The class is bound by the limitations of the .NET framework on the length of filenames, folder names and paths. These limits can be bypassed by enabling the class to call Windows directly to access the disk.
    Inheritance Hierarchy

    System.Object
       System.MarshalByRefObject
          Xceed.FileSystem.FileSystemItem
             Xceed.FileSystem.AbstractFile
                Xceed.FileSystem.DiskFile
                   Xceed.FileSystem.Windows.WindowsDiskFile

    Public Constructors
     NameDescription
    Public ConstructorOverloaded. Initializes a new instance of the DiskFile class.  
    Top
    Public Properties
     NameDescription
    Public PropertyGets or sets the attributes of the item. (Inherited from Xceed.FileSystem.FileSystemItem)
    Public PropertyGets or sets the creation date and time of the item. (Inherited from Xceed.FileSystem.FileSystemItem)
    Public Property  
    Public Propertystatic (Shared in Visual Basic)Gets or sets a value indicating the default FileShare value to be used when opening read streams for copy/move operations.  
    Public Propertystatic (Shared in Visual Basic)Gets or sets a value indicating the default FileShare value to be used when opening write streams for copy/move operations.  
    Public Propertystatic (Shared in Visual Basic)  
    Public PropertyGets a boolean value indicating if the item physically exists. (Inherited from Xceed.FileSystem.FileSystemItem)
    Public PropertyGets the full name of the item. (Inherited from Xceed.FileSystem.FileSystemItem)
    Public PropertyGets a boolean value indicating if the item supports attributes. (Inherited from Xceed.FileSystem.FileSystemItem)
    Public PropertyGets a boolean value indicating if the item supports having a creation date and time. (Inherited from Xceed.FileSystem.FileSystemItem)
    Public Property  
    Public PropertyGets a boolean value indicating if the item supports having a last access date and time. (Inherited from Xceed.FileSystem.FileSystemItem)
    Public Property  
    Public PropertyGets a boolean value indicating if the item supports having a last write date and time. (Inherited from Xceed.FileSystem.FileSystemItem)
    Public Property  
    Public PropertyGets 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)
    Public PropertyGets an AbstractFile containing an archived version of this FileSystemItem. (Inherited from Xceed.FileSystem.FileSystemItem)
    Public PropertyGets or sets the last access date and time of the item. (Inherited from Xceed.FileSystem.FileSystemItem)
    Public Property  
    Public PropertyGets or sets the modification date and time of the item. (Inherited from Xceed.FileSystem.FileSystemItem)
    Public Property  
    Public PropertyGets or sets the filename, without path, of the item. (Inherited from Xceed.FileSystem.FileSystemItem)
    Public PropertyGets a reference to the parent folder of this item. (Inherited from Xceed.FileSystem.FileSystemItem)
    Public Property  
    Public PropertyGets a reference to the root folder of this item. (Inherited from Xceed.FileSystem.FileSystemItem)
    Public PropertyGets the size of the file in bytes. (Inherited from Xceed.FileSystem.AbstractFile)
    Top
    Protected Properties
     NameDescription
    Protected PropertyOverridden. Returns null (Nothing in Visual Basic) since a DiskFile or a DiskFolder does not support the IBatchUpdateable interface.  
    Protected PropertyOverridden. Gets or sets the attributes of the item.  
    Protected PropertyOverridden. Gets or sets the creation date and time of the item.  
    Protected Property  
    Protected PropertyOverridden. Gets a boolean value indicating if the item physically exists.  
    Protected PropertyOverridden. Gets the full name of the item.  
    Protected PropertyGets a boolean value indicating if the item supports attributes. (Inherited from Xceed.FileSystem.FileSystemItem)
    Protected PropertyGets a boolean value indicating if the item supports having a creation date and time. (Inherited from Xceed.FileSystem.FileSystemItem)
    Protected Property  
    Protected PropertyGets a boolean value indicating if the item supports having a last access date and time. (Inherited from Xceed.FileSystem.FileSystemItem)
    Protected Property  
    Protected PropertyGets a boolean value indicating if the item supports having a last write date and time. (Inherited from Xceed.FileSystem.FileSystemItem)
    Protected Property  
    Protected PropertyOverridden. Gets or sets the last access date and time of the item.  
    Protected Property  
    Protected PropertyOverridden. Gets or sets the modification date and time of the item.  
    Protected Property  
    Protected PropertyOverridden. Gets or sets the filename, without path, of the item.  
    Protected PropertyOverridden. Gets a reference to the parent folder of this item.  
    Protected PropertyOverridden. Gets a reference to the root folder of this item.  
    Protected PropertyOverridden. Gets the size of the file in bytes.  
    Protected PropertyGets the characters that are invalid in file and folder names. (Inherited from Xceed.FileSystem.FileSystemItem)
    Protected Property  
    Top
    Public Methods
     NameDescription
    Public MethodOverloaded. Copies the item's properties to another item. (Inherited from Xceed.FileSystem.FileSystemItem)
    Public MethodOverloaded. Copies the file's data to another file. (Inherited from Xceed.FileSystem.AbstractFile)
    Public MethodOverloaded. Creates the physical item represented by this FileSystemItem object. (Inherited from Xceed.FileSystem.FileSystemItem)
    Public Method (Inherited from System.MarshalByRefObject)
    Public MethodOverloaded. Creates a file and opens it for writing. (Inherited from Xceed.FileSystem.AbstractFile)
    Public Methodstatic (Shared in Visual Basic)Represents the method that will handle the disk item's PathException event.  
    Public MethodOverloaded. Permanently deletes the physical item. (Inherited from Xceed.FileSystem.FileSystemItem)
    Public Method (Inherited from Xceed.FileSystem.AbstractFile)
    Public Method (Inherited from Xceed.FileSystem.AbstractFile)
    Public Method (Inherited from Xceed.FileSystem.AbstractFile)
    Public Method (Inherited from System.MarshalByRefObject)
    Public Method (Inherited from Xceed.FileSystem.FileSystemItem)
    Public Method (Inherited from System.MarshalByRefObject)
    Public Method  
    Public MethodOverridden. Gets a boolean value indicating if the source and target items represent the same physical entity.  
    Public MethodOverloaded. Moves the contents of the AbstractFile object to the target AbstractFile object. (Inherited from Xceed.FileSystem.AbstractFile)
    Public MethodOverloaded. Opens the file for reading. (Inherited from Xceed.FileSystem.AbstractFile)
    Public MethodOverloaded. Opens the file for writing. (Inherited from Xceed.FileSystem.AbstractFile)
    Public MethodOverloaded. Re-reads the information from the physical item. (Inherited from Xceed.FileSystem.FileSystemItem)
    Public Method (Inherited from Xceed.FileSystem.FileSystemItem)
    Public MethodReturns the full name of the item. (Inherited from Xceed.FileSystem.FileSystemItem)
    Top
    Protected Methods
     NameDescription
    Protected Method (Inherited from Xceed.FileSystem.FileSystemItem)
    Protected Internal MethodBuilds a list of FileSystemItem objects to process. (Inherited from Xceed.FileSystem.AbstractFile)
    Protected MethodHandles the special cases in regards to building the list of items to process when creating a FileSystemItem object. (Inherited from Xceed.FileSystem.FileSystemItem)
    Protected Method (Inherited from Xceed.FileSystem.FileSystemItem)
    Protected MethodOverloaded.   
    Protected Method (Inherited from Xceed.FileSystem.FileSystemItem)
    Protected MethodOverloaded.  (Inherited from Xceed.FileSystem.FileSystemItem)
    Protected MethodThis method is reserved for internal use and is not intended to be used directly from your code. (Inherited from Xceed.FileSystem.FileSystemItem)
    Protected MethodCopies the item's properties to another item. (Inherited from Xceed.FileSystem.FileSystemItem)
    Protected MethodCopies the file into the destination. (Inherited from Xceed.FileSystem.AbstractFile)
    Protected Internal MethodOverridden. Creates the physical file.  
    Protected MethodOverridden.   
    Protected Internal MethodOverridden. Permanently deletes the physical item.  
    Protected MethodOverridden.   
    Protected MethodOverridden.   
    Protected MethodOverridden. Opens the file for reading.  
    Protected MethodOverridden. Opens the file for writing.  
    Protected MethodOverridden. Re-reads the information from the physical item.  
    Protected MethodOverridden.   
    Protected MethodEnsures that the System.DateTime value is valid. (Inherited from Xceed.FileSystem.FileSystemItem)
    Protected MethodOverridden. Gets a value indicating the FileShare value to be used when opening read streams for copy/move operations.  
    Protected MethodOverridden. Gets a value indicating the FileShare value to be used when opening write streams for copy/move operations.  
    Protected MethodReturns the recommended buffer size for a stream copy operation. (Inherited from Xceed.FileSystem.AbstractFile)
    Protected MethodOverridden. Returns a boolean value indicating if the path passed is rooted.  
    Protected Method (Inherited from Xceed.FileSystem.FileSystemItem)
    Protected MethodCopies each item in the FileSystemEventsSession object's list to each item's destination. (Inherited from Xceed.FileSystem.FileSystemItem)
    Protected MethodCopies the item pair's current FileSystemItem to its target FileSystemItem. (Inherited from Xceed.FileSystem.FileSystemItem)
    Protected MethodCreates each item in the FileSystemEventsSession object's list. (Inherited from Xceed.FileSystem.FileSystemItem)
    Protected MethodCreates the item pair's current FileSystemItem. (Inherited from Xceed.FileSystem.FileSystemItem)
    Protected MethodDeletes each item in the FileSystemEventsSession object's list. (Inherited from Xceed.FileSystem.FileSystemItem)
    Protected MethodDeletes the item pair's current FileSystemItem. (Inherited from Xceed.FileSystem.FileSystemItem)
    Protected MethodMoves each item in the FileSystemEventsSession object's list to each item's destination. (Inherited from Xceed.FileSystem.FileSystemItem)
    Protected MethodMoves the item pair's current FileSystemItem to its target FileSystemItem. (Inherited from Xceed.FileSystem.FileSystemItem)
    Protected MethodOverloaded.  (Inherited from System.MarshalByRefObject)
    Protected Method (Inherited from Xceed.FileSystem.FileSystemItem)
    Protected MethodCalled when a client explicitly calls Create. (Inherited from Xceed.FileSystem.FileSystemItem)
    Protected Method (Inherited from Xceed.FileSystem.FileSystemItem)
    Protected Method (Inherited from Xceed.FileSystem.FileSystemItem)
    Protected Method (Inherited from Xceed.FileSystem.AbstractFile)
    Protected Method (Inherited from Xceed.FileSystem.AbstractFile)
    Top
    Requirements

    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

    See Also