The DirectoryElements type exposes the following members.

Constructors

  NameDescription
Public methodDirectoryElements
Initializes a new instance of the DirectoryElements class.

Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemoveElement
Removes a file from the current directory elements list.
Public methodScan
Scans the specified directory (and subdirectories, if required)
Public methodToString
Returns a String that represents a description of the current directory Object.
(Overrides Object..::..ToString()()()().)

Properties

  NameDescription
Public propertyDirectory
Initial Directory
Public propertyFiles
A list (Collection) of files into the directory
Public propertyIncludeArchiveFiles
Gets or sets a value indicating whether [include archive files].
Public propertyIncludeHiddenFiles
Gets or sets a value indicating whether [include hidden files].
Public propertyIncludeSystemFiles
Gets or sets a value indicating whether [include system files].
Public propertyIsWithSubDirs
Gets a value indicating whether this instance is with sub directories.
Public propertyNrOfFiles
Number of files into the directory and all of its subdirectories
Public propertyNrOfSubdirectories
Number of subdirectories
Public propertySubdirectories
Gets all subdirectories inside original one, without original one.

See Also