Click or drag to resize

InventoryDirectoriesAndFiles Class

Inventories the input directory and all of its sub-directories and all files contained in the directory and its sub-directories. File system metadata is returned for every directory and document (file).
Inheritance Hierarchy
SystemObject
  OpenDiscoverSDK.Platform.InventoryInventoryDirectoriesAndFiles

Namespace: OpenDiscoverSDK.Platform.Inventory
Assembly: OpenDiscoverSDK (in OpenDiscoverSDK.dll) Version: 2025.4.6.0 (2025.4.6)
Syntax
C#
public class InventoryDirectoriesAndFiles

The InventoryDirectoriesAndFiles type exposes the following members.

Constructors
 NameDescription
Public methodInventoryDirectoriesAndFilesInitializes a new instance of the InventoryDirectoriesAndFiles class
Top
Properties
 NameDescription
Public propertyCurrentTotalFileCount Total current number of files enumerated.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStartInventory 
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventOnInventoryCompleted This event is called when inventory is complete.
Public eventOnInventoryUpdate This event is called using a maximum file enumerated count threshold that triggers this event. An event handler subscriber is required.
Top
Remarks
Since modern file systems can contain many thousands of directories and millions of files, this class has an event OnInventoryUpdate that is called when the maximum file enumerated count threshold (see contructor argument 'inventoryUpdateEventMaxFileCount') is reached and/or when all directories and files have been enumerated.
See Also