Class FileDependency
FileDependency class is used to provide file based dependency to the user. If items are dependent on that file, the items will be removed on the file update.
Inherited Members
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
[Serializable]
public class FileDependency : CacheDependency, IDisposable
Constructors
Name | Description |
---|---|
FileDependency(String) | Initializes a new instance of the FileDependency class that monitors a file or directory for changes. |
FileDependency(String, DateTime) | Initializes a new instance of the FileDependency class that monitors path (to files or directories) for changes and specifies a time when change monitoring begins. |
FileDependency(String[]) | Initializes a new instance of the FileDependency class that monitors an array of file paths (to files or directories) for changes. |
FileDependency(String[], DateTime) | Initializes a new instance of the FileDependency class that monitors an array of file paths (to files or directories) for changes and specifies a time when change monitoring begins. |
Properties
Name | Description |
---|---|
FileNames | Gets the file names. |
StartAfterTicks | StartAfterTicks shows the time after which dependency is to be started. |