DirectoryItem Class

Represents a file system directory and its contained files (documents) and sub-directories.

Definition

Namespace: OpenDiscoverSDK.Interfaces.Platform.Inventory.Legacy
Assembly: OpenDiscoverSDK.Interfaces (in OpenDiscoverSDK.Interfaces.dll) Version: 2026.2.6.0 (2026.02.06)
C#
[DataContractAttribute]
public class DirectoryItem
Inheritance
Object    DirectoryItem

Constructors

DirectoryItemInitializes a new instance of the DirectoryItem class

Properties

Attributes Directory file system attributes.
CreationTimeUtc Gets or sets the creation time, in coordinated universal time (UTC), of the current file or directory.
Documents Child documents (files) directly contained by this DirectoryItem instance.
ErrorMessage Error message for the error that occurred enumerating the directory.
HasError Error occured enumerating the directory.
LastAccessTimeUtc Gets or sets the time, in coordinated universal time (UTC), that the current file or directory was last accessed.
LastWriteTimeUtc Gets or sets the time, in coordinated universal time (UTC), when the current file or directory was last written to.
Members Returns the sub-directory items of this instance first and then the document items of this instance.
Name Directory or file name.
NameWithTotalFileCount Name of the directory and total document count under the directory as a string. Format: "Name (count)"
Path Full path of the directory
Result Result of the enumeration of this directory item.
SubDirectories Sub-directories of this directory item.
Tag For use internally by OpenDiscoverSDK.Platform.Inventory.DocumentHierarchy class.
TotalDirectoryCount Total number of sub-directories in this directory.
TotalDocumentCount Total number of documents contained directly in this directory and in all sub-directories nested under this directory (inclused sub-directories of sub.
TotalSizeInBytes Total size, in bytes, of all the documents in this directory and in all sub-directories nested under this directory.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also